changeset 1547:b63e772ee21d

Useless use of if() with g_free().
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 01 Sep 2007 06:01:34 +0300
parents a8436c6e3753
children cf75d9479932
files src/xspf/xspf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xspf/xspf.c	Sat Sep 01 05:23:31 2007 +0300
+++ b/src/xspf/xspf.c	Sat Sep 01 06:01:34 2007 +0300
@@ -328,7 +328,7 @@
                     if (title && *title) {
                         gchar *old = plist->title;
                         plist->title = g_strdup((gchar*)title);
-                        if(old) g_free(old);
+                        g_free(old);
                     }
                     xmlFree(title);
                 }