MacOSX/Framework/VLCVideoView.m: Fix a potential segfault.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 2 Jan 2008 18:05:14 +0000 (18:05 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 2 Jan 2008 18:05:14 +0000 (18:05 +0000)
extras/MacOSX/Framework/Sources/VLCVideoView.m

index a518e5a..a0e96d9 100644 (file)
@@ -177,7 +177,7 @@ NSString * VLCVideoViewLeftFullScreen       = @"VLCVideoViewLeftFullScreen";
         [self setStretchesVideo:NO];
         [self setAutoresizesSubviews:YES];
         [self setFillScreen: NO];
-        layoutManager = [VLCConstraintLayoutManager layoutManager];
+        layoutManager = [[VLCConstraintLayoutManager layoutManager] retain];
     }
     return self;
 }