Commit 4d1b0df5 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

fixed other minor memory leaks

parent d8c57640
......@@ -680,9 +680,9 @@ _g_replace (const char *str,
gstr = g_string_new (NULL);
for (i = 0; tokens[i] != NULL; i++) {
gstr = g_string_append (gstr, tokens[i]);
g_string_append (gstr, tokens[i]);
if ((to_str != NULL) && (tokens[i+1] != NULL))
gstr = g_string_append (gstr, to_str);
g_string_append (gstr, to_str);
}
g_strfreev (tokens);
......@@ -2033,6 +2033,7 @@ _g_file_attributes_matches_mask (const char *attributes,
}
g_strfreev (mask_v);
g_strfreev (attributes_v);
return matches;
}
......
......@@ -53,7 +53,12 @@ gth_pref_initialize (void)
if (eel_gconf_get_boolean (PREF_USE_STARTUP_LOCATION, FALSE) ||
eel_gconf_get_boolean (PREF_GO_TO_LAST_LOCATION, FALSE))
{
gth_pref_set_startup_location (eel_gconf_get_path (PREF_STARTUP_LOCATION, NULL));
char *startup_location;
startup_location = eel_gconf_get_path (PREF_STARTUP_LOCATION, NULL);
gth_pref_set_startup_location (startup_location);
g_free (startup_location);
}
else {
char *current_dir;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment