From e2a3b26c681b57f89dc427db254ed72e7faa91ca Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 19 Mar 2004 20:20:05 +0000 Subject: Don't try to unref NULL icon. Fixes bug #137715. 2004-03-19 Christian Persch * src/bookmarks/ephy-bookmark-properties.c: (set_window_icon): Don't try to unref NULL icon. Fixes bug #137715. --- src/bookmarks/ephy-bookmark-properties.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c index 1e1c62a12..2b6325add 100644 --- a/src/bookmarks/ephy-bookmark-properties.c +++ b/src/bookmarks/ephy-bookmark-properties.c @@ -297,8 +297,11 @@ set_window_icon (EphyBookmarkProperties *editor) NULL); } - gtk_window_set_icon (GTK_WINDOW (editor), icon); - g_object_unref (icon); + if (icon != NULL) + { + gtk_window_set_icon (GTK_WINDOW (editor), icon); + g_object_unref (icon); + } } static void -- cgit v1.2.3