]> granicus.if.org Git - handbrake/commitdiff
MacGui: Add call to hb_global_close() upon application termination as per changes...
authordynaflash <dynaflashtech@gmail.com>
Fri, 26 Mar 2010 15:03:11 +0000 (15:03 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Fri, 26 Mar 2010 15:03:11 +0000 (15:03 +0000)
- 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

macosx/Controller.m
macosx/HBPreviewController.m

index ce3e70a4d066643750e98a38dd229d3ba1cbd813..db649f504a2925d30aea00f9fe672600382f41da 100644 (file)
@@ -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();
+
 }
 
 
index 2ca393cb96bfde226fceb9b27d1b28e0bd394834..764da459d7deed8381f2063ab74b7b1a47f70e63 100644 (file)
     
     [fPicturePreviews release];
     [fFullScreenWindow release];
+    
+    hb_close(&fPreviewLibhb);
 
     [super dealloc];
 }