MacOSX/Framework/VLCVideoView.m: Fix a potential segfault.
[vlc.git] / 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;
 }