# HG changeset patch # User Ritor1 # Date 1376201349 -21600 # Node ID f682c853200d5761a75e6f55fec877bcd909d347 # Parent 0c462cc807a1152e4122f203cf388913c9960044 m diff -r 0c462cc807a1 -r f682c853200d UI/UICharacter.cpp --- a/UI/UICharacter.cpp Tue Aug 06 01:05:56 2013 +0600 +++ b/UI/UICharacter.cpp Sun Aug 11 12:09:09 2013 +0600 @@ -3136,12 +3136,12 @@ dword_507CC0_activ_ch = 0; for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = j ) { - j=i->pNext; - if ( BYTE1(i->field_1C) & 0x80 ) - { + j = i->pNext; + if ( BYTE1(i->field_1C) & 0x80 ) + { i->Release(); - pAllocator->FreeChunk(i); - } + pAllocator->FreeChunk(i); + } } for ( j = pGUIWindow_CurrentMenu->pControlsHead; j; j = j->pNext ) {