wIconUpdate removed scr variable
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 14 Nov 2012 21:11:49 +0000 (14 22:11 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 14 Nov 2012 22:55:45 +0000 (14 22:55 +0000)
The variable scr is not used, so MUST be removed.

This variable can cause a segfault because icon could not exist.

src/icon.c

index 1ed90bd..6a0e817 100644 (file)
@@ -601,11 +601,8 @@ static void unset_icon_image(WIcon *icon)
 
 void wIconUpdate(WIcon *icon)
 {
-       WScreen *scr = icon->core->screen_ptr;
        WWindow *wwin = icon->owner;
 
-       assert(scr->icon_tile != NULL);
-
        if (wwin && WFLAGP(wwin, always_user_icon)) {
                /* Forced use user_icon */
                get_rimage_icon_from_user_icon(icon);