[vlc-devel] commit: macosx: Make sure we don't leak an input. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Jul 12 22:24:49 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jul 12 22:26:42 2008 +0200| [113ee07fa684730fb96aff8abb6f7db9b1ad369e]
macosx: Make sure we don't leak an input.
Should fix the input item leak error when quitting VLC.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=113ee07fa684730fb96aff8abb6f7db9b1ad369e
---
modules/gui/macosx/intf.m | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 628ef4f..2092031 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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;
More information about the vlc-devel
mailing list