summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2019-05-07 22:31:19 +0000
committerMichael Catanzaro <mcatanzaro@posteo.net>2019-05-09 21:28:26 +0000
commitdfdc5bda198f8789d9b64b3efe52a002b7c5849c (patch)
tree5a80f47435476b0f859291956346e6e72df025c5
parent6805081230120a41bbc53215ffa94c94f1b0eac2 (diff)
downloadepiphany-dfdc5bda198f8789d9b64b3efe52a002b7c5849c.tar.gz
location-entry: destroy bookmark popover in dispose
The EphyAddBookmarkPopover can currently outlive the EphyLocationEntry. That's bad! Speculative fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1707455 (cherry picked from commit bae5b1d3fb03528f929857fe3df32ccad5f7cb30)
-rw-r--r--lib/widgets/ephy-location-entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 0beb4b507..5faa882c7 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -394,6 +394,8 @@ ephy_location_entry_dispose (GObject *object)
g_clear_object (&entry->css_provider);
+ gtk_widget_destroy (GTK_WIDGET (entry->add_bookmark_popover));
+
G_OBJECT_CLASS (ephy_location_entry_parent_class)->dispose (object);
}