]> git.sesse.net Git - vlc/commitdiff
macosx: Make sure we don't leak an input.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 12 Jul 2008 20:26:42 +0000 (22:26 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 12 Jul 2008 20:27:06 +0000 (22:27 +0200)
Should fix the input item leak error when quitting VLC.

modules/gui/macosx/intf.m

index 628ef4fc388fb687fb18c67470198dccb993a824..2092031f67d44947dcf795109a14b1f24dd1a9d7 100644 (file)
@@ -1363,6 +1363,10 @@ static VLCMain *_o_sharedMainInstance = nil;
         }
         vlc_object_release( p_input );
     }
+    else if( p_input )
+    {
+        vlc_object_release( p_input );
+    }
     else
     {
         p_intf->p_sys->i_play_status = END_S;