From ba95beda3b2a3ab8454f7d57d2fe3bc03100fbbc Mon Sep 17 00:00:00 2001 From: ritsuka Date: Tue, 11 Sep 2007 13:30:19 +0000 Subject: [PATCH] MacGui: Fixed a memory leak in picturecontroller.mm added in #936 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@948 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/PictureController.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index f8aec43ff..424e8e967 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -23,6 +23,7 @@ static int GetAlignedSize( int size ) if (self = [super init]) { delegate = del; + [self loadMyNibFile]; } return self; } @@ -400,8 +401,6 @@ static int GetAlignedSize( int size ) } - (void) showPanelInWindow: (NSWindow *) fWindow forTitle:(hb_title_t *)title { - [self loadMyNibFile]; - NSSize newSize; newSize.width = 246 + title->width; newSize.height = 80 + title->height; -- 2.40.0