summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-02-10 19:21:47 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-02-10 19:21:47 +0000
commit709665e5c050085fd5e250ae0534ea057df2ffda (patch)
tree84b8110ea27b2c05d147ede0548d8300be1fe920 /amiga/gui.c
parent802fb8a77ee26249f8fa8d43249eb59a5bec43ab (diff)
downloadnetsurf-709665e5c050085fd5e250ae0534ea057df2ffda.tar.gz
netsurf-709665e5c050085fd5e250ae0534ea057df2ffda.tar.bz2
Ensure we always free the screen notification signal
Diffstat (limited to 'amiga/gui.c')
-rw-r--r--amiga/gui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index af0b06dd2..fc33b1fcd 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -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;