[vlc-commits] macosx: remove unneeded free
David Fuhrmann
git at videolan.org
Fri Nov 15 18:04:46 CET 2013
vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Nov 14 13:14:07 2013 +0100| [ee5ba3c10e7142edba14388899c6d795bc4f0493] | committer: David Fuhrmann
macosx: remove unneeded free
(cherry picked from commit 09e1913c5390c6f971094fb4af78a89486fd1d25)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=ee5ba3c10e7142edba14388899c6d795bc4f0493
---
modules/gui/macosx/VideoEffects.m | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/gui/macosx/VideoEffects.m b/modules/gui/macosx/VideoEffects.m
index 6f413cb..b435888 100644
--- a/modules/gui/macosx/VideoEffects.m
+++ b/modules/gui/macosx/VideoEffects.m
@@ -520,8 +520,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
psz_string = config_GetPsz(p_intf, psz_filter_type);
if (b_on) {
- if (!psz_string) {
- free(psz_string);
+ if (psz_string == NULL) {
psz_string = strdup(psz_name);
} else if (strstr(psz_string, psz_name) == NULL) {
char *psz_tmp = strdup([[NSString stringWithFormat: @"%s:%s", psz_string, psz_name] UTF8String]);
More information about the vlc-commits
mailing list