Eliminate some minor leaks
Found using the Instruments XCode tool on OS X.
This commit is contained in:
parent
d5cca37922
commit
f2cab560c6
@ -577,7 +577,9 @@ static void styleset_common_init(GKeyFile *config, GKeyFile *config_home)
|
|||||||
get_keyfile_int(config, config_home, "styling", "line_height",
|
get_keyfile_int(config, config_home, "styling", "line_height",
|
||||||
0, 0, &common_style_set.styling[GCS_LINE_HEIGHT]);
|
0, 0, &common_style_set.styling[GCS_LINE_HEIGHT]);
|
||||||
|
|
||||||
|
g_free(common_style_set.wordchars);
|
||||||
get_keyfile_wordchars(config, config_home, &common_style_set.wordchars);
|
get_keyfile_wordchars(config, config_home, &common_style_set.wordchars);
|
||||||
|
g_free(whitespace_chars);
|
||||||
whitespace_chars = get_keyfile_whitespace_chars(config, config_home);
|
whitespace_chars = get_keyfile_whitespace_chars(config, config_home);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -664,7 +664,11 @@ void configuration_load_session_files(GKeyFile *config, gboolean read_recent_fil
|
|||||||
|
|
||||||
/* the project may load another list than the main setting */
|
/* the project may load another list than the main setting */
|
||||||
if (session_files != NULL)
|
if (session_files != NULL)
|
||||||
|
{
|
||||||
|
foreach_ptr_array(tmp_array, i, session_files)
|
||||||
|
g_strfreev(tmp_array);
|
||||||
g_ptr_array_free(session_files, TRUE);
|
g_ptr_array_free(session_files, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
session_files = g_ptr_array_new();
|
session_files = g_ptr_array_new();
|
||||||
have_session_files = TRUE;
|
have_session_files = TRUE;
|
||||||
|
@ -440,6 +440,7 @@ static void destroy_project(gboolean open_default)
|
|||||||
g_free(app->project->description);
|
g_free(app->project->description);
|
||||||
g_free(app->project->file_name);
|
g_free(app->project->file_name);
|
||||||
g_free(app->project->base_path);
|
g_free(app->project->base_path);
|
||||||
|
g_strfreev(app->project->file_patterns);
|
||||||
|
|
||||||
g_free(app->project);
|
g_free(app->project);
|
||||||
app->project = NULL;
|
app->project = NULL;
|
||||||
@ -813,7 +814,7 @@ static gboolean update_config(const PropertyDialogElements *e, gboolean new_proj
|
|||||||
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(e->description));
|
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(e->description));
|
||||||
gtk_text_buffer_get_start_iter(buffer, &start);
|
gtk_text_buffer_get_start_iter(buffer, &start);
|
||||||
gtk_text_buffer_get_end_iter(buffer, &end);
|
gtk_text_buffer_get_end_iter(buffer, &end);
|
||||||
SETPTR(p->description, g_strdup(gtk_text_buffer_get_text(buffer, &start, &end, FALSE)));
|
SETPTR(p->description, gtk_text_buffer_get_text(buffer, &start, &end, FALSE));
|
||||||
|
|
||||||
foreach_slist(node, stash_groups)
|
foreach_slist(node, stash_groups)
|
||||||
stash_group_update(node->data, e->dialog);
|
stash_group_update(node->data, e->dialog);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user