Fix a few memory leaks, from Louis Delacroix.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3711 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -487,6 +487,8 @@ main (int argc, char *argv[])
|
||||
UnInitThreadSystem ();
|
||||
mem_uninit ();
|
||||
}
|
||||
|
||||
HFree (options.addons);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -211,6 +211,7 @@ Flash_terminate (FlashContext *context)
|
||||
Flash_drawFrame (context, context->original);
|
||||
|
||||
Flash_clearCache (context);
|
||||
HFree (context->cache);
|
||||
DestroyDrawable (ReleaseDrawable (context->original));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user