summaryrefslogtreecommitdiff
path: root/libwnck/xutils.c
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2011-02-03 17:48:54 +0100
committerVincent Untz <vuntz@gnome.org>2011-02-03 17:48:54 +0100
commit77827ce14197637a7ac535ef5b3f3477d8a92b6a (patch)
tree8a9c29cc4f405b22a1701b46581119bb581db4fe /libwnck/xutils.c
parent794c801b9262ccabe2fec260c5b400d835ce128b (diff)
downloadlibwnck-77827ce14197637a7ac535ef5b3f3477d8a92b6a.tar.gz
core: Fix crash when reading pixmap icons that have no mask
Diffstat (limited to 'libwnck/xutils.c')
-rw-r--r--libwnck/xutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libwnck/xutils.c b/libwnck/xutils.c
index 2551762..ec1fff8 100644
--- a/libwnck/xutils.c
+++ b/libwnck/xutils.c
@@ -1723,6 +1723,8 @@ try_pixmap_and_mask (Screen *screen,
if (surface && src_mask != None)
mask_surface = _wnck_cairo_surface_get_from_pixmap (screen, src_mask);
+ else
+ mask_surface = NULL;
_wnck_error_trap_pop ();