Commit 31b1205f authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix use after free for video effects string

This bug resulted in failure of setting more than one video effect
filter on mavericks.

close #9849
parent a5a87c3c
...@@ -524,8 +524,9 @@ static VLCVideoEffects *_o_sharedInstance = nil; ...@@ -524,8 +524,9 @@ static VLCVideoEffects *_o_sharedInstance = nil;
free(psz_string); free(psz_string);
psz_string = strdup(psz_name); psz_string = strdup(psz_name);
} else if (strstr(psz_string, psz_name) == NULL) { } else if (strstr(psz_string, psz_name) == NULL) {
char *psz_tmp = strdup([[NSString stringWithFormat: @"%s:%s", psz_string, psz_name] UTF8String]);
free(psz_string); free(psz_string);
psz_string = strdup([[NSString stringWithFormat: @"%s:%s", psz_string, psz_name] UTF8String]); psz_string = psz_tmp;
} }
} else { } else {
if (!psz_string) if (!psz_string)
......
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