Commit 321e0a5a authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Don't release then retain the same item if we store it.

parent c79d407e
......@@ -573,8 +573,10 @@ error:
- (void)refresh
{
if( p_item ) vlc_gc_decref( p_item );
input_item_t * oldItem = p_item;
p_item = [[[VLCMain sharedInstance] getInfo] item];
if( oldItem && oldItem != p_item ) vlc_gc_decref( oldItem );
[o_children release];
o_children = nil;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment