1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

wIconUpdate removed scr variable

The variable scr is not used, so MUST be removed.

This variable can cause a segfault because icon could not exist.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-11-14 22:11:49 +01:00
committed by Carlos R. Mafra
parent d8b92c979e
commit 2eb1107e20

View 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);