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:
Steve Herrell
2010-11-10 08:50:54 -05:00
parent 6cce14161f
commit 6d4c50255a
6 changed files with 21 additions and 12 deletions

View File

@@ -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);