Ensure we always free the screen notification signal

This commit is contained in:
Chris Young 2014-02-10 19:21:47 +00:00
parent 802fb8a77e
commit 709665e5c0

View File

@ -2759,7 +2759,11 @@ void ami_gui_close_screen(struct Screen *scrn, BOOL locked_screen)
{
if(scrn == NULL) return;
if(CloseScreen(scrn) == TRUE) {
if(locked_screen == FALSE) scrn = NULL;
if(locked_screen == FALSE) {
FreeSignal(screen_signal);
screen_signal = NULL;
scrn = NULL;
}
return;
}
if(locked_screen == TRUE) return;