1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-12 13:44:56 +02:00

macosx: fix wrong ref counting in media info

This commit is contained in:
David Fuhrmann 2015-03-21 18:04:09 +01:00
parent f1c6b2db25
commit d173264a9a

View File

@ -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;