Remove dup set icon file to NULL
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 14 Nov 2012 19:06:14 +0000 (14 20:06 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 14 Nov 2012 22:40:00 +0000 (14 22:40 +0000)
Remove the icon->file = NULL because was set in unset_icon_image().

src/icon.c

index 04767d8..5a18148 100644 (file)
@@ -656,7 +656,6 @@ static void get_rimage_icon_from_x11(WIcon *icon)
        unset_icon_image(icon);
 
        /* Set the new icon image */
-       icon->file = NULL;
        icon->file_image = RRetainImage(icon->owner->net_icon_image);
 }
 
@@ -680,7 +679,6 @@ static void get_rimage_icon_from_default_icon(WIcon *icon)
        unset_icon_image(icon);
 
        /* Set the new icon image */
-       icon->file = NULL;
        icon->file_image = RRetainImage(scr->def_icon_rimage);
 }
 
@@ -696,7 +694,6 @@ static void get_rimage_icon_from_icon_win(WIcon *icon)
        unset_icon_image(icon);
 
        /* Set the new info */
-       icon->file = NULL;
        icon->file_image = image;
 }