Defer free of kmatrix data until window is fully gone - patch by Kp

This commit is contained in:
zicodxx 2013-01-08 12:08:12 +01:00
parent cd86e2b8c2
commit 8de1f981cf
2 changed files with 3 additions and 3 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20130108
--------
main/gamerend.c, main/multi.c, net_udp.c: Fixed some minor HUD-text related issues: For team assignment messages, joining player name would appear; team color assignment in netgame info screen could be wrong due to wrong syntax handling; when rewrapping text messages to specific player, game would not add space behind colon
main/kmatrix.c: Defer free of kmatrix data until window is fully gone - patch by Kp
20130103
--------

View file

@ -328,9 +328,6 @@ int kmatrix_handler(window *wind, d_event *event, kmatrix_screen *km)
case EVENT_WINDOW_CLOSE:
game_flush_inputs();
newmenu_free_background();
gr_free_bitmap_data(&km->background);
d_free(km);
break;
default:
@ -377,4 +374,6 @@ void kmatrix_view(int network)
while (window_exists(wind))
event_process();
gr_free_bitmap_data(&km->background);
d_free(km);
}