diff options
author | Jean-François Rameau <jframeau@cvs.gnome.org> | 2006-10-15 12:50:18 +0000 |
---|---|---|
committer | Jean-François Rameau <jframeau@src.gnome.org> | 2006-10-15 12:50:18 +0000 |
commit | 810de085bcac312498a96c2688b3e411e7673603 (patch) | |
tree | 21aa1cdae62c2cfb9321ac45ea14526fa7cc80b3 | |
parent | f80a7de91a44f2d57446de092230da89e79cc9e1 (diff) | |
download | epiphany-810de085bcac312498a96c2688b3e411e7673603.tar.gz |
Fix unprotected call to ephy_node_remove_child. Bug #362063.
2006-10-15 Jean-François Rameau <jframeau@cvs.gnome.org>
* src/bookmarks/ephy-bookmarks.c: (update_has_smart_address):
Fix unprotected call to ephy_node_remove_child. Bug #362063.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks.c | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-10-15 Jean-François Rameau <jframeau@cvs.gnome.org> + + * src/bookmarks/ephy-bookmarks.c: (update_has_smart_address): + + Fix unprotected call to ephy_node_remove_child. Bug #362063. + 2006-10-08 Christian Persch <chpe@cvs.gnome.org> * embed/Makefile.am: diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 8ba6bd217..89341ae70 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -1272,7 +1272,10 @@ update_has_smart_address (EphyBookmarks *bookmarks, EphyNode *bmk, const char *a */ if (smart && with_options) { - ephy_node_remove_child (smart_bmks, bmk); + if (ephy_node_has_child (smart_bmks, bmk)) + { + ephy_node_remove_child (smart_bmks, bmk); + } ephy_node_add_child (smart_bmks, bmk); } else if (smart) |