Various memory leaks found by valgrind/code review.
Many thanks to Jan for the much neater fast_demo.cc patch.
This commit is contained in:
@@ -97,6 +97,8 @@ struct RawImage {
|
||||
if(allocation){ delete [] allocation; allocation=NULL;}
|
||||
if(data){ delete [] data; data=NULL;}
|
||||
if(profile_data){ delete [] profile_data; profile_data=NULL;}
|
||||
if ( make ) free(make);
|
||||
if ( model ) free(model);
|
||||
}
|
||||
|
||||
int loadRaw (bool loadData=true);
|
||||
|
Reference in New Issue
Block a user