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:
committed by
Matthias Clasen
parent
a1e4554462
commit
82ce59cd0f
@ -1325,8 +1325,7 @@ gtk_text_iter_get_tags (const GtkTextIter *iter)
|
||||
/* No tags, use default style */
|
||||
if (tags == NULL || tag_count == 0)
|
||||
{
|
||||
if (tags)
|
||||
g_free (tags);
|
||||
g_free (tags);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@ -1743,8 +1742,7 @@ gtk_text_iter_get_attributes (const GtkTextIter *iter,
|
||||
/* No tags, use default style */
|
||||
if (tags == NULL || tag_count == 0)
|
||||
{
|
||||
if (tags)
|
||||
g_free (tags);
|
||||
g_free (tags);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user