Commit c4057d16 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCMedia.m: Don't forget to retain the url.

parent e2be1400
...@@ -314,7 +314,7 @@ static void HandleMediaDurationChanged(const libvlc_event_t *event, void *self) ...@@ -314,7 +314,7 @@ static void HandleMediaDurationChanged(const libvlc_event_t *event, void *self)
p_url = libvlc_media_descriptor_get_mrl( md, &ex ); p_url = libvlc_media_descriptor_get_mrl( md, &ex );
quit_on_exception( &ex ); quit_on_exception( &ex );
url = [NSString stringWithCString:p_url]; url = [[NSString stringWithCString:p_url] retain];
libvlc_media_descriptor_retain( md ); libvlc_media_descriptor_retain( md );
p_md = md; p_md = md;
......
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