Explorar el Código

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

Pierre d'Herbemont hace 17 años
padre
commit
ea56bc58c0
Se han modificado 1 ficheros con 1 adiciones y 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;
 }