From 1a0570e11dffce6dbf9d9caeea353de670e6805c Mon Sep 17 00:00:00 2001 From: dynaflash Date: Fri, 26 Mar 2010 15:03:11 +0000 Subject: [PATCH] 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://localhost/HandBrake/trunk@3171 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.m | 4 +++- macosx/HBPreviewController.m | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index ce3e70a4..db649f50 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 2ca393cb..764da459 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -159,6 +159,8 @@ [fPicturePreviews release]; [fFullScreenWindow release]; + + hb_close(&fPreviewLibhb); [super dealloc]; } -- 2.11.0