From 551983e0fa42ee207f136e64ca4a8dea545bb57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 9 Jun 2014 19:20:23 +0200 Subject: Check for allocation = NULL. This fixes a segfault during applet load --- mate-window-picker-applet/task-item.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mate-window-picker-applet/task-item.c') diff --git a/mate-window-picker-applet/task-item.c b/mate-window-picker-applet/task-item.c index cafcb2c..366dea0 100644 --- a/mate-window-picker-applet/task-item.c +++ b/mate-window-picker-applet/task-item.c @@ -106,9 +106,11 @@ update_hints (TaskItem *item) /* Set the minimize hint for the window */ gtk_widget_get_allocation (widget, allocation); - wnck_window_set_icon_geometry (window, x, y, + if (allocation) { + wnck_window_set_icon_geometry (window, x, y, allocation->width, allocation->height); + } } static gboolean -- cgit v1.2.1