Commit ccc1a9c2 authored by Jean-Paul Saman's avatar Jean-Paul Saman

macosx: VLCAdditions do not leak memory.

parent e4b9f907
......@@ -102,6 +102,11 @@ static NSMapTable *VLCAdditions_userInfo = nil;
- (void)dealloc
{
NSMapRemove(VLCAdditions_userInfo, self);
NSResetMapTable(VLCAdditions_userInfo);
/* NSCreateMapTable mallocs memory from the default zone ('malloc')
* thus releasing it with free() is save. */
free(VLCAdditions_userInfo);
VLCAdditions_userInfo = nil;
[super dealloc];
}
......
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