[gthumb/ext: 2/15] duplicate the passed file_data because it will be modified



commit ae70b9cbb0b50145149fa0d5c85476752edf49ef
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Dec 7 21:42:02 2009 +0100

    duplicate the passed file_data because it will be modified
    
    when file_data can be modified it must be duplicated

 extensions/catalogs/dlg-catalog-properties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/catalogs/dlg-catalog-properties.c b/extensions/catalogs/dlg-catalog-properties.c
index 7237e25..f611c23 100644
--- a/extensions/catalogs/dlg-catalog-properties.c
+++ b/extensions/catalogs/dlg-catalog-properties.c
@@ -174,7 +174,7 @@ dlg_catalog_properties (GthBrowser  *browser,
 
 	data = g_new0 (DialogData, 1);
 	data->browser = browser;
-	data->file_data = g_object_ref (file_data);
+	data->file_data = gth_file_data_dup (file_data);
 	data->original_file = g_file_dup (data->file_data->file);
 	data->builder = _gtk_builder_new_from_file ("catalog-properties.ui", "catalogs");
 	data->dialog = GET_WIDGET ("properties_dialog");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]