summaryrefslogtreecommitdiff
path: root/frontends/amiga/libs.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2019-03-17 23:45:49 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2019-03-17 23:45:49 +0000
commit22b1484300c727aacd0f0e410810d666df5c027d (patch)
treebfbb5eeb369b2ac8d15f6e31214f2e69029ba865 /frontends/amiga/libs.c
parent5d69dd9ddff1f39d8d8320df662fb881d8775649 (diff)
parentd0a9fc3e35113e8734d10338856a43599f98d50c (diff)
downloadnetsurf-22b1484300c727aacd0f0e410810d666df5c027d.tar.gz
netsurf-22b1484300c727aacd0f0e410810d666df5c027d.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf into chris/amissl
Diffstat (limited to 'frontends/amiga/libs.c')
-rw-r--r--frontends/amiga/libs.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/frontends/amiga/libs.c b/frontends/amiga/libs.c
index cbef3c2fa..7de768b6a 100644
--- a/frontends/amiga/libs.c
+++ b/frontends/amiga/libs.c
@@ -113,7 +113,9 @@
#define AMINS_CLASS_CLOSE(PREFIX) \
if(I##PREFIX) DropInterface((struct Interface *)I##PREFIX); \
- if(PREFIX##Base) CloseClass(PREFIX##Base);
+ if(PREFIX##Base) CloseClass(PREFIX##Base); \
+ I##PREFIX = NULL; \
+ PREFIX##Base = NULL;
#define AMINS_CLASS_STRUCT(PREFIX) \
struct ClassLibrary *PREFIX##Base = NULL; \
@@ -136,7 +138,8 @@
}
#define AMINS_LIB_CLOSE(PREFIX) \
- if(PREFIX##Base) CloseLibrary((struct Library *)PREFIX##Base);
+ if(PREFIX##Base) CloseLibrary((struct Library *)PREFIX##Base); \
+ PREFIX##Base = NULL;
#define AMINS_LIB_STRUCT(PREFIX) \
struct PREFIX##Base *PREFIX##Base = NULL;
@@ -156,7 +159,8 @@
}
#define AMINS_CLASS_CLOSE(PREFIX) \
- if(PREFIX##Base) CloseLibrary(PREFIX##Base);
+ if(PREFIX##Base) CloseLibrary(PREFIX##Base); \
+ PREFIX##Base = NULL;
#define AMINS_CLASS_STRUCT(PREFIX) \
struct Library *PREFIX##Base = NULL; \