From 85b5c16b09320d6da34dd552c79ad28a43e9debf Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 29 Sep 2017 17:52:15 -0400 Subject: mq_about_request(): Move g_free() call The duplicated query string is used in the hash table. --- (limited to 'src/about.c') diff --git a/src/about.c b/src/about.c index 192290a..a4b4d39 100644 --- a/src/about.c +++ b/src/about.c @@ -65,7 +65,6 @@ mq_about_request(WebKitURISchemeRequest *request, MqApplication *application) if (query_str && query_str[1]) { query_str = g_strdup(query_str + 1); query = parse_query_string(query_str); - g_free(query_str); } else { query = NULL; } @@ -79,6 +78,8 @@ mq_about_request(WebKitURISchemeRequest *request, MqApplication *application) return; } + g_free(query_str); + webkit_uri_scheme_request_finish(request, stream, stream_length, "text/html"); g_object_unref(stream); -- cgit v0.9.1