aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-20 04:20:05 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-20 04:20:05 +0800
commite2a3b26c681b57f89dc427db254ed72e7faa91ca (patch)
treee236f7d41b5e5ecb2d6ebfe115ca1d04636a70e1 /src/bookmarks
parenta79d9e28e324d9a6f0424e1dc6736f0839d31989 (diff)
downloadgsoc2013-epiphany-e2a3b26c681b57f89dc427db254ed72e7faa91ca.tar
gsoc2013-epiphany-e2a3b26c681b57f89dc427db254ed72e7faa91ca.tar.gz
gsoc2013-epiphany-e2a3b26c681b57f89dc427db254ed72e7faa91ca.tar.bz2
gsoc2013-epiphany-e2a3b26c681b57f89dc427db254ed72e7faa91ca.tar.lz
gsoc2013-epiphany-e2a3b26c681b57f89dc427db254ed72e7faa91ca.tar.xz
gsoc2013-epiphany-e2a3b26c681b57f89dc427db254ed72e7faa91ca.tar.zst
gsoc2013-epiphany-e2a3b26c681b57f89dc427db254ed72e7faa91ca.zip
Don't try to unref NULL icon. Fixes bug #137715.
2004-03-19 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmark-properties.c: (set_window_icon): Don't try to unref NULL icon. Fixes bug #137715.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmark-properties.c7
1 files changed, 5 insertions, 2 deletions
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