diff options
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/agclass/amigaguide_class.c | 4 | ||||
-rwxr-xr-x | amiga/help.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/amiga/agclass/amigaguide_class.c b/amiga/agclass/amigaguide_class.c index fa88dd642..5f24fc56d 100755 --- a/amiga/agclass/amigaguide_class.c +++ b/amiga/agclass/amigaguide_class.c @@ -361,6 +361,10 @@ uint32 agm_process(Class *cl, Object *o, Msg msg) if (lod->agHandle) { while ( (lod->agm = IAmigaGuide->GetAmigaGuideMsg(lod->agHandle)) ) { switch(lod->agm->agm_Type) { + case ShutdownMsgId: + agm_close(cl, o, (Msg)msg); + break; + default: //printf("%d\n", lod->agm->agm_Type); break; diff --git a/amiga/help.c b/amiga/help.c index f094c70ec..a2e4f05a5 100755 --- a/amiga/help.c +++ b/amiga/help.c @@ -1,5 +1,5 @@ /*
- * Copyright 2013 Chris Young <chris@unsatisfactorysoftware.co.uk>
+ * Copyright 2013-4 Chris Young <chris@unsatisfactorysoftware.co.uk>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
@@ -78,6 +78,6 @@ ULONG ami_help_signal(void) void ami_help_process(void)
{
ULONG ret = IDoMethod(AmigaGuideObject, AGM_PROCESS, NULL);
- //printf("ret = %d\n", ret); // should be NULL if closed
+ if(ret == NULL) ami_help_free();
}
|