diff options
author | uranther <jwheaton@purdue.edu> | 2009-06-26 11:01:12 -0400 |
---|---|---|
committer | uranther <jwheaton@purdue.edu> | 2009-06-26 11:01:12 -0400 |
commit | 6c336537c432475e2bc7bb84e0d2eeea18491a51 (patch) | |
tree | 315fc4473551f09ccaa10ca900c17285612db398 /uzbl.c | |
parent | 2f4b201c35a858b800d15fc3b10c51beaa885fc8 (diff) |
Plugged some memory leaks by not unnecessarily calling g_strdup (g_string_append takes a const gchar* as a parameter). Saved: 17 bytes
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1016,7 +1016,7 @@ expand_template(const char *template, gboolean escape_markup) { } else g_string_append(ret, uzbl.gui.main_title ? - uzbl.gui.main_title : g_strdup("")); + uzbl.gui.main_title : ""); break; case SYM_SELECTED_URI: if(escape_markup) { @@ -1027,7 +1027,7 @@ expand_template(const char *template, gboolean escape_markup) { } else g_string_append(ret, uzbl.state.selected_url ? - uzbl.state.selected_url : g_strdup("")); + uzbl.state.selected_url : ""); break; case SYM_NAME: buf = itos(uzbl.xwin); @@ -1044,7 +1044,7 @@ expand_template(const char *template, gboolean escape_markup) { } else g_string_append(ret, uzbl.state.keycmd->str ? - uzbl.state.keycmd->str : g_strdup("")); + uzbl.state.keycmd->str : ""); break; case SYM_MODE: g_string_append(ret, |