[gthumb] removed wrong g_object_unref call
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] removed wrong g_object_unref call
- Date: Tue, 22 Jun 2010 09:41:34 +0000 (UTC)
commit 123280808246ce9a2ed89b27117801dc2eac361b
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Jun 22 11:38:03 2010 +0200
removed wrong g_object_unref call
extensions/importer/gth-import-task.c | 8 +++-----
extensions/webalbums/gth-web-exporter.c | 8 +++-----
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/extensions/importer/gth-import-task.c b/extensions/importer/gth-import-task.c
index ea8741d..5426ada 100644
--- a/extensions/importer/gth-import-task.c
+++ b/extensions/importer/gth-import-task.c
@@ -259,12 +259,12 @@ write_buffer_ready_cb (void **buffer,
value = gth_metadata_get_raw (metadata);
if (value != NULL) {
- int transform;
+ GthTransform transform;
- sscanf (value, "%d", &transform);
+ transform = (GthTransform) strtol (value, (char **) NULL, 10);
if (transform != 1) {
apply_transformation_async (self->priv->destination_file,
- (GthTransform) transform,
+ transform,
JPEG_MCU_ACTION_ABORT,
gth_task_get_cancellable (GTH_TASK (self)),
transformation_ready_cb,
@@ -272,8 +272,6 @@ write_buffer_ready_cb (void **buffer,
appling_tranformation = TRUE;
}
}
-
- g_object_unref (metadata);
}
}
diff --git a/extensions/webalbums/gth-web-exporter.c b/extensions/webalbums/gth-web-exporter.c
index e9960ee..b922b39 100644
--- a/extensions/webalbums/gth-web-exporter.c
+++ b/extensions/webalbums/gth-web-exporter.c
@@ -2392,12 +2392,12 @@ copy_current_file (GthWebExporter *self)
value = gth_metadata_get_raw (metadata);
if (value != NULL) {
- int transform;
+ GthTransform transform;
- sscanf (value, "%d", &transform);
+ transform = (GthTransform) strtol (value, (char **) NULL, 10);
if (transform != 1) {
apply_transformation_async (image_data->file_data,
- (GthTransform) transform,
+ transform,
JPEG_MCU_ACTION_TRIM,
gth_task_get_cancellable (GTH_TASK (self)),
transformation_ready_cb,
@@ -2405,8 +2405,6 @@ copy_current_file (GthWebExporter *self)
appling_tranformation = TRUE;
}
}
-
- g_object_unref (metadata);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]