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
|
@ -455,6 +455,8 @@ safe_set_entry (MimeEditDialog *dialog, char const *widget, char const *txt)
|
|||
static void
|
||||
fill_dialog (MimeEditDialog *dialog)
|
||||
{
|
||||
gchar *category_name;
|
||||
|
||||
g_return_if_fail (dialog->p->info != NULL);
|
||||
|
||||
mime_type_info_load_all (dialog->p->info);
|
||||
|
@ -463,9 +465,10 @@ fill_dialog (MimeEditDialog *dialog)
|
|||
dialog->p->info->description);
|
||||
safe_set_entry (dialog, "mime_type_entry",
|
||||
dialog->p->info->mime_type);
|
||||
safe_set_entry (dialog, "category_entry",
|
||||
mime_type_info_get_category_name (dialog->p->info));
|
||||
|
||||
category_name = mime_type_info_get_category_name (dialog->p->info);
|
||||
safe_set_entry (dialog, "category_entry", category_name);
|
||||
g_free (category_name);
|
||||
|
||||
update_sensitivity (dialog);
|
||||
|
||||
gnome_icon_entry_set_filename (GNOME_ICON_ENTRY (WID ("icon_entry")), mime_type_info_get_icon_path (dialog->p->info));
|
||||
|
|
|
@ -69,6 +69,7 @@ load_all_mime_types (GtkTreeModel *model)
|
|||
for (tmp = list; tmp != NULL; tmp = tmp->next)
|
||||
mime_type_info_new (tmp->data, model);
|
||||
|
||||
g_list_free (tmp);
|
||||
g_list_free (list);
|
||||
}
|
||||
|
||||
|
|
|
@ -374,7 +374,8 @@ mime_types_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, gint co
|
|||
MimeTypesModel *model;
|
||||
ModelEntry *entry;
|
||||
GdkPixbuf *icon;
|
||||
|
||||
gchar *pretty_string;
|
||||
|
||||
g_return_if_fail (tree_model != NULL);
|
||||
g_return_if_fail (IS_MIME_TYPES_MODEL (tree_model));
|
||||
|
||||
|
@ -454,7 +455,9 @@ mime_types_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, gint co
|
|||
|
||||
switch (entry->type) {
|
||||
case MODEL_ENTRY_MIME_TYPE:
|
||||
g_value_set_string (value, mime_type_info_get_file_extensions_pretty_string (MIME_TYPE_INFO (entry)));
|
||||
pretty_string = mime_type_info_get_file_extensions_pretty_string (MIME_TYPE_INFO (entry));
|
||||
g_value_set_string (value, pretty_string);
|
||||
g_free (pretty_string);
|
||||
break;
|
||||
|
||||
case MODEL_ENTRY_SERVICE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue