[vlc-commits] macosx: remove unneeded free

David Fuhrmann git at videolan.org
Fri Nov 15 17:58:46 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Nov 14 13:14:07 2013 +0100| [09e1913c5390c6f971094fb4af78a89486fd1d25] | committer: David Fuhrmann

macosx: remove unneeded free

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09e1913c5390c6f971094fb4af78a89486fd1d25
---

 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