[gthumb/gthumb-2-12] Fixed search in catalogs



commit 1c076032fd04e560712ab84301f2d846af8ba774
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jan 2 14:58:32 2011 +0100

    Fixed search in catalogs
    
    [bug #638009]

 extensions/catalogs/gth-file-source-catalogs.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/extensions/catalogs/gth-file-source-catalogs.c b/extensions/catalogs/gth-file-source-catalogs.c
index 4988f24..01ddb0a 100644
--- a/extensions/catalogs/gth-file-source-catalogs.c
+++ b/extensions/catalogs/gth-file-source-catalogs.c
@@ -416,7 +416,7 @@ gth_file_source_catalogs_read_metadata (GthFileSource *file_source,
 typedef struct {
 	GthFileSource         *file_source;
 	gboolean               recursive;
-	const char            *attributes;
+	char                  *attributes;
 	StartDirCallback       start_dir_func;
 	ForEachChildCallback   for_each_file_func;
 	ReadyCallback          ready_func;
@@ -431,6 +431,7 @@ for_each_child_data_free (ForEachChildData *data)
 {
 	_g_object_list_unref (data->to_visit);
 	g_object_ref (data->catalog);
+	g_free (data->attributes);
 	g_object_ref (data->file_source);
 }
 
@@ -630,7 +631,7 @@ gth_file_source_catalogs_for_each_child (GthFileSource        *file_source,
 	data = g_new0 (ForEachChildData, 1);
 	data->file_source = g_object_ref (file_source);
 	data->recursive = recursive;
-	data->attributes = attributes;
+	data->attributes = g_strdup (attributes);
 	data->start_dir_func = start_dir_func;
 	data->for_each_file_func = for_each_file_func;
 	data->ready_func = ready_func;



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