[epiphany] Avoid warnings from new definition of g_clear_pointer



commit 5f73f46e5b93b5f7fa4ec7aa7a64824cf32c07d0
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Thu Jul 26 22:59:54 2018 -0500

    Avoid warnings from new definition of g_clear_pointer

 embed/ephy-embed-utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 29f6634cc..226c12c20 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -382,6 +382,6 @@ ephy_embed_utils_urls_have_same_origin (const char *a_url,
 void
 ephy_embed_utils_shutdown (void)
 {
-  g_clear_pointer (&non_search_regex, (GDestroyNotify)g_regex_unref);
-  g_clear_pointer (&domain_regex, (GDestroyNotify)g_regex_unref);
+  g_clear_pointer (&non_search_regex, g_regex_unref);
+  g_clear_pointer (&domain_regex, g_regex_unref);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]