Explorar o código

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

Pierre d'Herbemont %!s(int64=17) %!d(string=hai) anos
pai
achega
ea56bc58c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 }