[eog] Remove unneeded finalize() from EogListStore
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Remove unneeded finalize() from EogListStore
- Date: Thu, 13 Jan 2011 22:56:34 +0000 (UTC)
commit 9ae71ccc6a0ef2970185333b59bd26f29ea57fa4
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Jan 14 00:53:16 2011 +0200
Remove unneeded finalize() from EogListStore
No need to free() the private struct, since it's done automatically by
the type.
src/eog-list-store.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/eog-list-store.c b/src/eog-list-store.c
index b948274..33dc2f2 100644
--- a/src/eog-list-store.c
+++ b/src/eog-list-store.c
@@ -43,19 +43,6 @@ struct _EogListStorePrivate {
};
static void
-eog_list_store_finalize (GObject *object)
-{
- EogListStore *store = EOG_LIST_STORE (object);
-
- if (store->priv != NULL) {
- g_free (store->priv);
- store->priv = NULL;
- }
-
- G_OBJECT_CLASS (eog_list_store_parent_class)->finalize (object);
-}
-
-static void
foreach_monitors_free (gpointer data, gpointer user_data)
{
g_file_monitor_cancel (G_FILE_MONITOR (data));
@@ -93,7 +80,6 @@ eog_list_store_class_init (EogListStoreClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->finalize = eog_list_store_finalize;
object_class->dispose = eog_list_store_dispose;
g_type_class_add_private (object_class, sizeof (EogListStorePrivate));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]