[vlc-commits] macosx: fix wrong ref counting in media info
David Fuhrmann
git at videolan.org
Sat Mar 21 18:07:53 CET 2015
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Mar 21 18:04:09 2015 +0100| [d173264a9a2f8e31bf87a4292d41bc75dcc8076f] | committer: David Fuhrmann
macosx: fix wrong ref counting in media info
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d173264a9a2f8e31bf87a4292d41bc75dcc8076f
---
modules/gui/macosx/playlistinfo.m | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index 9ec4cf5..8274ba5 100644
--- a/modules/gui/macosx/playlistinfo.m
+++ b/modules/gui/macosx/playlistinfo.m
@@ -499,10 +499,10 @@ error:
- (void)refresh
{
- input_item_t * oldItem = p_item;
+ if (p_item)
+ vlc_gc_decref(p_item);
+
p_item = [(VLCInfo *)[[VLCMain sharedInstance] info] item];
- if (oldItem && oldItem != p_item)
- vlc_gc_decref(oldItem);
[o_children release];
o_children = nil;
More information about the vlc-commits
mailing list