[vlc-devel] commit: macosx: Fix some input_item_t leaks. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Apr 12 01:23:40 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Apr 12 01:23:52 2008 +0200| [ee17d6bb32b6fd9380eddfede3382a317ffa31f7]
macosx: Fix some input_item_t leaks.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee17d6bb32b6fd9380eddfede3382a317ffa31f7
---
modules/gui/macosx/applescript.m | 1 +
modules/gui/macosx/playlist.m | 2 ++
modules/gui/macosx/wizard.m | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/applescript.m b/modules/gui/macosx/applescript.m
index f64340e..83dbb20 100644
--- a/modules/gui/macosx/applescript.m
+++ b/modules/gui/macosx/applescript.m
@@ -61,6 +61,7 @@
playlist_AddInput( p_playlist, p_input, PLAYLIST_INSERT,
PLAYLIST_END, VLC_TRUE, VLC_FALSE );
+ vlc_gc_decref( p_input );
o_url = [NSURL fileURLWithPath: o_urlString];
if( o_url != nil )
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index c05933f..09c3c13 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1020,6 +1020,7 @@
p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
}
+ vlc_gc_decref( p_input );
}
[self playlistUpdated];
vlc_object_release( p_playlist );
@@ -1063,6 +1064,7 @@
p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
}
+ vlc_gc_decref( p_input );
}
[self playlistUpdated];
vlc_object_release( p_playlist );
diff --git a/modules/gui/macosx/wizard.m b/modules/gui/macosx/wizard.m
index d31ac1e..5d2974f 100644
--- a/modules/gui/macosx/wizard.m
+++ b/modules/gui/macosx/wizard.m
@@ -1304,6 +1304,7 @@ static VLCWizard *_o_sharedInstance = nil;
p_item );
}
+ vlc_gc_decref( p_input );
x += 1;
}
More information about the vlc-devel
mailing list