summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-03-26 15:03:11 +0000
committerdynaflash <[email protected]>2010-03-26 15:03:11 +0000
commit9fe5c90432484ec753c19f7767408b007f243aae (patch)
treed6105716b4d2c03a63b01274d4cb1cb02e571312 /macosx
parentff1bc2964476e2cbf22ed3dd7aa249a9cc77368b (diff)
MacGui: Add call to hb_global_close() upon application termination as per changes in rev 3170
- Also added a missing call to hb_close for the live preview encoding instance git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3171 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-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];
}