Defer free of kmatrix data until window is fully gone - patch by Kp
This commit is contained in:
parent
9d16bf74d3
commit
9f2e3dac7f
|
@ -3,6 +3,7 @@ D2X-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
|
||||
--------
|
||||
|
|
|
@ -370,9 +370,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:
|
||||
|
@ -419,4 +416,6 @@ void kmatrix_view(int network)
|
|||
|
||||
while (window_exists(wind))
|
||||
event_process();
|
||||
gr_free_bitmap_data(&km->background);
|
||||
d_free(km);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue