From f607cda39a44d1cc1114f50ce98c1b6fdd88931f Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Fri, 14 Jan 2011 00:53:16 +0200 Subject: Remove unneeded finalize() from EomListStore No need to free() the private struct, since it's done automatically by the type. origin commit: https://gitlab.gnome.org/GNOME/eog/commit/9ae71cc --- src/eom-list-store.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/eom-list-store.c b/src/eom-list-store.c index 8a52398..51df69d 100644 --- a/src/eom-list-store.c +++ b/src/eom-list-store.c @@ -42,19 +42,6 @@ struct _EomListStorePrivate { GMutex mutex; /* Mutex for saving the jobs in the model */ }; -static void -eom_list_store_finalize (GObject *object) -{ - EomListStore *store = EOM_LIST_STORE (object); - - if (store->priv != NULL) { - g_free (store->priv); - store->priv = NULL; - } - - G_OBJECT_CLASS (eom_list_store_parent_class)->finalize (object); -} - static void foreach_monitors_free (gpointer data, gpointer user_data) { @@ -93,7 +80,6 @@ eom_list_store_class_init (EomListStoreClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - object_class->finalize = eom_list_store_finalize; object_class->dispose = eom_list_store_dispose; g_type_class_add_private (object_class, sizeof (EomListStorePrivate)); -- cgit v1.2.1