]> granicus.if.org Git - handbrake/commitdiff
MacGui: Fixed a memory leak in picturecontroller.mm added in #936
authorritsuka <damiog@gmail.com>
Tue, 11 Sep 2007 13:30:19 +0000 (13:30 +0000)
committerritsuka <damiog@gmail.com>
Tue, 11 Sep 2007 13:30:19 +0000 (13:30 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@948 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/PictureController.mm

index f8aec43fff3bfe8698ee22a79db76357f13d1271..424e8e96716838abe9b2fe12a68d4f9467de6ac5 100644 (file)
@@ -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;