summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-08-17 23:33:58 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2016-08-17 23:33:58 (GMT)
commit5aa2feaa06fc7850a4c4892293b1174a8d4ed92c (patch)
tree69d372903313c7f5db5328694af19540247259ae
parent7543833037e1e44f8f4b6ce950c4d7833bd93c42 (diff)
downloadnetsurf-5aa2feaa06fc7850a4c4892293b1174a8d4ed92c.tar.gz
netsurf-5aa2feaa06fc7850a4c4892293b1174a8d4ed92c.tar.bz2
Call CloseLibrary
-rw-r--r--frontends/amiga/libs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/amiga/libs.c b/frontends/amiga/libs.c
index c3b1bf9..4c242d2 100644
--- a/frontends/amiga/libs.c
+++ b/frontends/amiga/libs.c
@@ -61,6 +61,7 @@
I##PREFIX = (struct PREFIX##IFace *)GetInterface((struct Library *)PREFIX##Base, INTERFACE, INTVER, NULL); \
if(I##PREFIX == NULL) { \
LOG("Failed to get %s interface v%d of %s", INTERFACE, INTVER, LIB); \
+ AMINS_LIB_CLOSE(PREFIX) \
if(FAIL == true) { \
STRPTR error = ASPrintf("Unable to open interface %s v%d\nof %s v%ld (fatal error - not an OS4 lib?)", INTERFACE, INTVER, LIB, LIBVER); \
ami_misc_fatal_error(error); \