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:
parent
f1c6b2db25
commit
d173264a9a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user