about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTodd T. Fries <todd@fries.net>2012-07-26 10:43:34 -0500
committerTodd T. Fries <todd@fries.net>2012-07-26 10:43:34 -0500
commitb1556c9645b5cd7b3f029d92c4110a7466b24f7b (patch)
tree1a2d5bc0e005e1ccb021eac0a982ea1f8cb5d63f
parentc8882c02ff76ba21087cd4776e2a9b11fc868fff (diff)
downloadxombrero-b1556c9645b5cd7b3f029d92c4110a7466b24f7b.tar.gz
two more free() -> g_free(); ok jrick
-rw-r--r--xombrero.c5
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);