[gthumb] [importer] allow to pass NULL as tag parameter
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] [importer] allow to pass NULL as tag parameter
- Date: Sat, 3 Apr 2010 20:44:45 +0000 (UTC)
commit ae2d071b373ffa5ce94b13c3faf680cd97dde005
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Apr 3 22:19:05 2010 +0200
[importer] allow to pass NULL as tag parameter
extensions/importer/gth-import-task.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/extensions/importer/gth-import-task.c b/extensions/importer/gth-import-task.c
index 7d031fa..ea8741d 100644
--- a/extensions/importer/gth-import-task.c
+++ b/extensions/importer/gth-import-task.c
@@ -77,7 +77,8 @@ gth_import_task_finalize (GObject *object)
_g_object_unref (self->priv->destination_file);
g_free (self->priv->custom_format);
g_free (self->priv->event_name);
- g_strfreev (self->priv->tags);
+ if (self->priv->tags != NULL)
+ g_strfreev (self->priv->tags);
g_hash_table_destroy (self->priv->catalogs);
_g_object_unref (self->priv->imported_catalog);
g_object_unref (self->priv->browser);
@@ -195,7 +196,7 @@ transformation_ready_cb (GError *error,
GthStringList *tag_list;
GList *file_list;
- if (self->priv->tags[0] == NULL) {
+ if ((self->priv->tags == NULL) || (self->priv->tags[0] == NULL)) {
catalog_imported_file (self);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]