[epiphany] uri-tester: unref load_loap only if nonnull
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] uri-tester: unref load_loap only if nonnull
- Date: Wed, 28 Dec 2016 22:25:18 +0000 (UTC)
commit 60b68ef7e9767471ff5c26b25f052270b76e1bca
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Dec 28 16:24:34 2016 -0600
uri-tester: unref load_loap only if nonnull
It's possible the URI tester was never loaded
embed/web-extension/ephy-uri-tester.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/web-extension/ephy-uri-tester.c b/embed/web-extension/ephy-uri-tester.c
index 453909f..d477d62 100644
--- a/embed/web-extension/ephy-uri-tester.c
+++ b/embed/web-extension/ephy-uri-tester.c
@@ -807,7 +807,8 @@ ephy_uri_tester_finalize (GObject *object)
g_regex_unref (tester->regex_subdocument);
g_regex_unref (tester->regex_frame_add);
- g_main_loop_unref (tester->load_loop);
+ if (tester->load_loop)
+ g_main_loop_unref (tester->load_loop);
G_OBJECT_CLASS (ephy_uri_tester_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]