Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,

2007-03-09  Matthias Clasen <mclasen@redhat.com>

        * Everywhere: Remove unnecessary NULL checks before
        g_free().  (#369666, Morten Welinder, Djihed Afifi)

        * configure.in: Check for ftw.h



svn path=/trunk/; revision=17444
This commit is contained in:
Matthias Clasen
2007-03-09 21:57:37 +00:00
committed by Matthias Clasen
parent a1e4554462
commit 82ce59cd0f
59 changed files with 126 additions and 232 deletions

View File

@ -360,8 +360,7 @@ gtk_recent_manager_finalize (GObject *object)
if (priv->poll_timeout)
g_source_remove (priv->poll_timeout);
if (priv->filename)
g_free (priv->filename);
g_free (priv->filename);
if (priv->recent_items)
g_bookmark_file_free (priv->recent_items);
@ -1737,11 +1736,9 @@ recent_app_info_free (RecentAppInfo *app_info)
if (!app_info)
return;
if (app_info->name)
g_free (app_info->name);
g_free (app_info->name);
if (app_info->exec)
g_free (app_info->exec);
g_free (app_info->exec);
g_free (app_info);
}