diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-03-20 04:20:05 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-03-20 04:20:05 +0800 |
commit | e2a3b26c681b57f89dc427db254ed72e7faa91ca (patch) | |
tree | e236f7d41b5e5ecb2d6ebfe115ca1d04636a70e1 /src/bookmarks | |
parent | a79d9e28e324d9a6f0424e1dc6736f0839d31989 (diff) | |
download | gsoc2013-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.c | 7 |
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 |