summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/Controller.m4
-rw-r--r--macosx/HBPreviewController.m2
2 files changed, 5 insertions, 1 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index ce3e70a4d..db649f504 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -309,8 +309,10 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[fPictureController release];
[fApplicationIcon release];
- hb_close(&fHandle);
+ hb_close(&fHandle);
hb_close(&fQueueEncodeLibhb);
+ hb_global_close();
+
}
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 2ca393cb9..764da459d 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -159,6 +159,8 @@
[fPicturePreviews release];
[fFullScreenWindow release];
+
+ hb_close(&fPreviewLibhb);
[super dealloc];
}