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
@ -526,8 +526,7 @@ gdk_rgb_free_info (GdkRgbInfo *image_info)
|
||||
{
|
||||
GSList *tmp_list;
|
||||
|
||||
if (image_info->stage_buf)
|
||||
g_free (image_info->stage_buf);
|
||||
g_free (image_info->stage_buf);
|
||||
|
||||
if (image_info->gray_cmap)
|
||||
gdk_rgb_cmap_free (image_info->gray_cmap);
|
||||
@ -535,11 +534,9 @@ gdk_rgb_free_info (GdkRgbInfo *image_info)
|
||||
if (image_info->own_gc)
|
||||
g_object_unref (image_info->own_gc);
|
||||
|
||||
if (image_info->colorcube)
|
||||
g_free (image_info->colorcube);
|
||||
g_free (image_info->colorcube);
|
||||
|
||||
if (image_info->colorcube_d)
|
||||
g_free (image_info->colorcube_d);
|
||||
g_free (image_info->colorcube_d);
|
||||
|
||||
tmp_list = image_info->cmap_info_list;
|
||||
while (tmp_list)
|
||||
|
||||
Reference in New Issue
Block a user