From b1556c9645b5cd7b3f029d92c4110a7466b24f7b Mon Sep 17 00:00:00 2001 From: "Todd T. Fries" Date: Thu, 26 Jul 2012 10:43:34 -0500 Subject: two more free() -> g_free(); ok jrick --- xombrero.c | 5 ++--- 1 file 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); -- cgit 1.4.1-2-gfad0