diff options
-rw-r--r-- | xombrero.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xombrero.c b/xombrero.c index 867ccf9..0f49f08 100644 --- a/xombrero.c +++ b/xombrero.c @@ -826,9 +826,8 @@ guess_url_type(char *url_in) path = g_strdup_printf("%s" PS "%s", cwd, url_in); url_out = g_filename_to_uri(path, NULL, NULL); + g_free(path); } - if (path) - free(path); } } else url_out = g_strdup_printf("http://%s", url_in); /* guess http */ @@ -4885,7 +4884,7 @@ webview_npd_cb(WebKitWebView *wv, WebKitWebFrame *wf, user_agent = ua; } - free(t->user_agent); + g_free(t->user_agent); t->user_agent = g_strdup(user_agent->value); DNPRINTF(XT_D_NAV, "user-agent: %s\n", t->user_agent); |