Patch from Kjartan Maraas to fix a bunch of leaks.
Thu Feb 13 18:51:37 2003 Jonathan Blandford <jrb@redhat.com> * capplets/common/gconf-property-editor.c: (gconf_peditor_new): * capplets/common/gnome-theme-info.c: (read_meta_theme), (update_theme_index), (update_common_theme_dir_index), (top_theme_dir_changed), (top_icon_theme_dir_changed), (add_common_theme_dir_monitor), (real_add_top_theme_dir_monitor): * capplets/default-applications/gnome-default-applications-properti es.c: (initialize_default_applications), (read_editor), (read_terminal): * capplets/file-types/mime-edit-dialog.c: (fill_dialog): * capplets/file-types/mime-type-info.c: (load_all_mime_types): * capplets/file-types/mime-types-model.c: (mime_types_model_get_value): * capplets/font/main.c: (font_render_get_gconf), (enum_group_load): * capplets/mouse/gnome-mouse-properties.c: (read_cursor_font), (cursor_changed): * capplets/theme-switcher/gnome-theme-details.c: (window_theme_selection_changed): * capplets/theme-switcher/gnome-theme-manager.c: (meta_theme_selection_changed): * capplets/theme-switcher/theme-thumbnail.c: (generate_theme_thumbnail): * libsounds/sound-properties.c: (sound_properties_add_directory), (sound_properties_add_file): * libsounds/sound-view.c: (compare_func): * libwindow-settings/gnome-window-manager.c: (gnome_window_manager_new): Patch from Kjartan Maraas to fix a bunch of leaks.
This commit is contained in:
parent
81e38ad5b2
commit
bd160edddf
13 changed files with 138 additions and 46 deletions
|
@ -391,7 +391,8 @@ read_cursor_font (void)
|
|||
}
|
||||
g_free (link_name);
|
||||
}
|
||||
|
||||
g_free (dir_name);
|
||||
closedir (dir);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -459,10 +460,11 @@ cursor_changed (GtkTreeSelection *selection,
|
|||
gtk_tree_model_get (model, &iter,
|
||||
COLUMN_FONT_PATH, &cursor_font,
|
||||
-1);
|
||||
if (cursor_font != NULL)
|
||||
if (cursor_font != NULL) {
|
||||
gconf_client_set_string (gconf_client_get_default (),
|
||||
CURSOR_FONT_KEY, cursor_font, NULL);
|
||||
else
|
||||
g_free (cursor_font);
|
||||
} else
|
||||
gconf_client_unset (gconf_client_get_default (),
|
||||
CURSOR_FONT_KEY, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue