summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-29 17:52:15 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-29 17:52:15 (EDT)
commit85b5c16b09320d6da34dd552c79ad28a43e9debf (patch)
tree8576ea8fff3fa7194de5018a3524cd24eb434e6b /src
parentd0f89e834922708596d25f7d78801603493a0321 (diff)
downloadmarquee-85b5c16b09320d6da34dd552c79ad28a43e9debf.zip
marquee-85b5c16b09320d6da34dd552c79ad28a43e9debf.tar.gz
marquee-85b5c16b09320d6da34dd552c79ad28a43e9debf.tar.bz2
mq_about_request(): Move g_free() call
The duplicated query string is used in the hash table.
Diffstat (limited to 'src')
-rw-r--r--src/about.c3
1 files changed, 2 insertions, 1 deletions
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);