OSDN Git Service

MacGui: Add call to hb_global_close() upon application termination as per changes...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 26 Mar 2010 15:03:11 +0000 (15:03 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
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://localhost/HandBrake/trunk@3171 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.m
macosx/HBPreviewController.m

index ce3e70a..db649f5 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 2ca393c..764da45 100644 (file)
     
     [fPicturePreviews release];
     [fFullScreenWindow release];
+    
+    hb_close(&fPreviewLibhb);
 
     [super dealloc];
 }