diff options
author | keis <keijser@gmail.com> | 2009-10-18 22:14:15 +0200 |
---|---|---|
committer | keis <keijser@gmail.com> | 2009-10-19 19:57:55 +0200 |
commit | 5e96e5511804cc82868553eed1326f54ff8b3ef3 (patch) | |
tree | e7cca4430a457931b4683fd0a2d9a1413e2db01d /uzbl-core.c | |
parent | 948908bb0c26f9211d744203ed89c0469f0039c8 (diff) |
consistently use g_free/g_malloc.
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 2cf5bd8..29f9af3 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -736,7 +736,7 @@ load_uri (WebKitWebView *web_view, GArray *argv, GString *result) { gchar* wd; wd = g_get_current_dir (); g_string_assign (fullpath, g_build_filename (wd, newuri->str, NULL)); - free(wd); + g_free(wd); } struct stat stat_result; if (! g_stat(fullpath->str, &stat_result)) { @@ -1360,13 +1360,13 @@ set_var_value(const gchar *name, gchar *val) { } /* custom vars */ - c = malloc(sizeof(uzbl_cmdprop)); + c = g_malloc(sizeof(uzbl_cmdprop)); c->type = TYPE_STR; c->dump = 0; c->func = NULL; c->writeable = 1; buf = g_strdup(val); - c->ptr.s = malloc(sizeof(char *)); + c->ptr.s = g_malloc(sizeof(char *)); *c->ptr.s = buf; g_hash_table_insert(uzbl.comm.proto_var, g_strdup(name), (gpointer) c); |