aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-20 04:23:18 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-20 04:23:18 +0800
commitb1a79813d62fa6626f0169adaa60d0762ade618e (patch)
tree43acbd5eb9632b28e55e373103011f709a214880
parent4b6f8eaaf7062d6e1a6194149ed80ae9eb35bb34 (diff)
downloadgsoc2013-epiphany-b1a79813d62fa6626f0169adaa60d0762ade618e.tar
gsoc2013-epiphany-b1a79813d62fa6626f0169adaa60d0762ade618e.tar.gz
gsoc2013-epiphany-b1a79813d62fa6626f0169adaa60d0762ade618e.tar.bz2
gsoc2013-epiphany-b1a79813d62fa6626f0169adaa60d0762ade618e.tar.lz
gsoc2013-epiphany-b1a79813d62fa6626f0169adaa60d0762ade618e.tar.xz
gsoc2013-epiphany-b1a79813d62fa6626f0169adaa60d0762ade618e.tar.zst
gsoc2013-epiphany-b1a79813d62fa6626f0169adaa60d0762ade618e.zip
Don't try to unref NULL icons. 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 icons. Fixes bug #137715.
-rw-r--r--ChangeLog6
-rw-r--r--src/bookmarks/ephy-bookmark-properties.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 77f20c934..ce4b558c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-19 Christian Persch <chpe@cvs.gnome.org>
+
+ * src/bookmarks/ephy-bookmark-properties.c: (set_window_icon):
+
+ Don't try to unref NULL icons. Fixes bug #137715.
+
2004-03-17 Piers Cornwell <piers@gnome.org>
* help/C/epiphany.xml: Fix notes and tips to validate.
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index f9fac1413..9fb3d0402 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -296,8 +296,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