[gthumb] file store: do not free the private data
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] file store: do not free the private data
- Date: Tue, 1 Nov 2011 14:35:51 +0000 (UTC)
commit c56b569c546ce831b97ba71b1591750fd81c9eb3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Nov 1 15:32:46 2011 +0100
file store: do not free the private data
gthumb/gth-file-store.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gthumb/gth-file-store.c b/gthumb/gth-file-store.c
index 8bc1993..f182add 100644
--- a/gthumb/gth-file-store.c
+++ b/gthumb/gth-file-store.c
@@ -204,13 +204,8 @@ gth_file_store_finalize (GObject *object)
file_store = GTH_FILE_STORE (object);
- if (file_store->priv != NULL) {
- _gth_file_store_free_rows (file_store);
- if (file_store->priv->filter != NULL)
- g_object_unref (file_store->priv->filter);
- g_free (file_store->priv);
- file_store->priv = NULL;
- }
+ _gth_file_store_free_rows (file_store);
+ _g_object_unref (file_store->priv->filter);
G_OBJECT_CLASS (gth_file_store_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]