From bcccce8793c10ec520191770149c3e2e85b06629 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 4 Aug 2017 21:36:01 +0200 Subject: [PATCH] Fixed none freed memory. The g_variant format 's' will duplicate the memory of the requested string. Changed this to '&s' to access the serialized data direct so there is no need to free it. --- src/webextension/ext-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webextension/ext-main.c b/src/webextension/ext-main.c index ef67c79..3c6383b 100644 --- a/src/webextension/ext-main.c +++ b/src/webextension/ext-main.c @@ -107,7 +107,7 @@ void webkit_web_extension_initialize_with_user_data(WebKitWebExtension *extensio char *server_address; GDBusAuthObserver *observer; - g_variant_get(data, "(ms)", &server_address); + g_variant_get(data, "(m&s)", &server_address); if (!server_address) { g_warning("UI process did not start D-Bus server"); return; -- 2.20.1