Browse Source

MacOSX/Framework/VLCVideoView.m: Fix a potential segfault.

Pierre d'Herbemont 17 years ago
parent
commit
ea56bc58c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCVideoView.m

+ 1 - 1
Sources/VLCVideoView.m

@@ -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;
 }