[gthumb] Fixed a memory leak when setting the file property in the thumbnail cell renderer
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Fixed a memory leak when setting the file property in the thumbnail cell renderer
- Date: Thu, 3 Nov 2011 17:07:34 +0000 (UTC)
commit 5e4ae04b87aebfcbd1454fbc05d5dd064bb4e606
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Nov 3 17:53:59 2011 +0100
Fixed a memory leak when setting the file property in the thumbnail cell renderer
gthumb/gth-cell-renderer-thumbnail.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-cell-renderer-thumbnail.c b/gthumb/gth-cell-renderer-thumbnail.c
index ea7307d..ef6ffa3 100644
--- a/gthumb/gth-cell-renderer-thumbnail.c
+++ b/gthumb/gth-cell-renderer-thumbnail.c
@@ -137,6 +137,8 @@ gth_cell_renderer_thumbnail_set_property (GObject *object,
self->priv->thumbnail = g_value_dup_object (value);
break;
case PROP_FILE:
+ if (self->priv->file != NULL)
+ g_object_unref (self->priv->file);
self->priv->file = g_value_dup_object (value);
break;
case PROP_CHECKED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]