mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-02 19:06:57 +03:00
Ensure we always free the screen notification signal
This commit is contained in:
parent
802fb8a77e
commit
709665e5c0
@ -2759,7 +2759,11 @@ void ami_gui_close_screen(struct Screen *scrn, BOOL locked_screen)
|
|||||||
{
|
{
|
||||||
if(scrn == NULL) return;
|
if(scrn == NULL) return;
|
||||||
if(CloseScreen(scrn) == TRUE) {
|
if(CloseScreen(scrn) == TRUE) {
|
||||||
if(locked_screen == FALSE) scrn = NULL;
|
if(locked_screen == FALSE) {
|
||||||
|
FreeSignal(screen_signal);
|
||||||
|
screen_signal = NULL;
|
||||||
|
scrn = NULL;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(locked_screen == TRUE) return;
|
if(locked_screen == TRUE) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user