From d2b9c3af8a2ffac4946c4b6a3839839930791449 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Thu, 3 Dec 2009 12:12:07 +0100 Subject: [PATCH] VLCKit: fix a leak. --- projects/macosx/framework/Sources/VLCStreamOutput.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/macosx/framework/Sources/VLCStreamOutput.m b/projects/macosx/framework/Sources/VLCStreamOutput.m index d99c1c2187..eec769a13d 100644 --- a/projects/macosx/framework/Sources/VLCStreamOutput.m +++ b/projects/macosx/framework/Sources/VLCStreamOutput.m @@ -44,17 +44,20 @@ } + (id)rtpBroadcastStreamOutputWithSAPAnnounce:(NSString *)announceName { - return [self streamOutputWithOptionDictionary:[NSDictionary dictionaryWithObjectsAndKeys: + NSString *name = [announceName copy]; + id output = [self streamOutputWithOptionDictionary:[NSDictionary dictionaryWithObjectsAndKeys: [NSDictionary dictionaryWithObjectsAndKeys: @"ts", @"muxer", @"file", @"access", @"sap", @"sdp", - [announceName copy], @"name", + name, @"name", @"239.255.1.1", @"destination", nil ], @"rtpOptions", nil ] ]; + [name release]; + return output; } + (id)rtpBroadcastStreamOutput -- 2.39.2