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
@ -1116,8 +1116,7 @@ gtk_selection_data_set (GtkSelectionData *selection_data,
|
||||
const guchar *data,
|
||||
gint length)
|
||||
{
|
||||
if (selection_data->data)
|
||||
g_free (selection_data->data);
|
||||
g_free (selection_data->data);
|
||||
|
||||
selection_data->type = type;
|
||||
selection_data->format = format;
|
||||
@ -2933,8 +2932,7 @@ gtk_selection_data_free (GtkSelectionData *data)
|
||||
{
|
||||
g_return_if_fail (data != NULL);
|
||||
|
||||
if (data->data)
|
||||
g_free (data->data);
|
||||
g_free (data->data);
|
||||
|
||||
g_free (data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user