[epiphany/gnome-3-22] web-extension: Fix memory leak



commit ecbe17a934efd6b8a821af14016c0eb0a74ebc97
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Oct 23 18:01:51 2016 -0500

    web-extension: Fix memory leak

 embed/web-extension/ephy-web-extension.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 5b1a085..16fd05b 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -1178,12 +1178,12 @@ handle_method_call (GDBusConnection       *connection,
   } else if (g_strcmp0 (method_name, "GetBestWebAppIcon") == 0) {
     WebKitWebPage *web_page;
     WebKitDOMDocument *document;
-    char *base_uri = NULL;
+    const char *base_uri = NULL;
     char *uri = NULL;
     char *color = NULL;
     guint64 page_id;
 
-    g_variant_get (parameters, "(ts)", &page_id, &base_uri);
+    g_variant_get (parameters, "(t&s)", &page_id, &base_uri);
     web_page = get_webkit_web_page_or_return_dbus_error (invocation, extension->extension, page_id);
     if (!web_page)
       return;


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