From 11fb240606be0d2bb52679d5ebc0c2b5ff26ccc1 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sun, 13 Oct 2013 13:16:11 -0700 Subject: [PATCH] Fixed a memory leak --- Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm index b36e6aae9..7bfa1c478 100644 --- a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm +++ b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm @@ -1013,6 +1013,8 @@ static int twosf_info(void * context, const char * name, const char * value) state_setrom(core, state.rom, (u32) state.rom_size ); state_loadstate(core, state.state, (u32) state.state_size); + + if (state.state) free(state.state); } else if ( type == 0x25 ) {