Procházet zdrojové kódy

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

Pierre d'Herbemont před 17 roky
rodič
revize
ea56bc58c0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 }