[gthumb] photo importer: don't ref/unref source if it's null
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] photo importer: don't ref/unref source if it's null
- Date: Wed, 13 Jul 2011 08:11:34 +0000 (UTC)
commit e110908a50e80515b78a4a351ca754e3502217e7
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 13 10:08:34 2011 +0200
photo importer: don't ref/unref source if it's null
extensions/photo_importer/callbacks.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/photo_importer/callbacks.c b/extensions/photo_importer/callbacks.c
index 70cee43..b39d7dd 100644
--- a/extensions/photo_importer/callbacks.c
+++ b/extensions/photo_importer/callbacks.c
@@ -110,7 +110,7 @@ import_data_unref (gpointer user_data)
ImportData *data = user_data;
g_object_unref (data->browser);
- g_object_unref (data->source);
+ _g_object_unref (data->source);
g_free (data);
}
@@ -133,7 +133,7 @@ pi__import_photos_cb (GthBrowser *browser,
data = g_new0 (ImportData, 1);
data->browser = g_object_ref (browser);
- data->source = g_object_ref (source);
+ data->source = _g_object_ref (source);
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
import_photos_idle_cb,
data,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]