[epiphany] web-extension: Fix memory leak



commit a31c3b53a15a1e36aca8ac4fa42f2f8ff24e8ff4
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 f0161b0..5c138ec 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -1229,12 +1229,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]