[vlc-commits] macosx: fix potential null pointer dereference

Felix Paul Kühne git at videolan.org
Sat Jun 9 17:44:13 CEST 2018


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun  9 16:17:55 2018 +0200| [864b5584f69d307b477d74c0a9a9df5d3836a61d] | committer: Felix Paul Kühne

macosx: fix potential null pointer dereference

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=864b5584f69d307b477d74c0a9a9df5d3836a61d
---

 modules/gui/macosx/VLCVoutView.m | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/VLCVoutView.m b/modules/gui/macosx/VLCVoutView.m
index 4952afe18b..658c193e50 100644
--- a/modules/gui/macosx/VLCVoutView.m
+++ b/modules/gui/macosx/VLCVoutView.m
@@ -76,11 +76,10 @@
 {
     if (self = [super initWithFrame:frameRect]) {
         [self registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
+        i_lastScrollWheelDirection = 0;
+        f_cumulated_magnification = 0.0;
     }
 
-    i_lastScrollWheelDirection = 0;
-    f_cumulated_magnification = 0.0;
-
     return self;
 }
 



More information about the vlc-commits mailing list