Skip to content
Permalink
Browse files

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
  • Loading branch information...
csaavedra authored and raveit65 committed Jan 13, 2011
1 parent 9b79e09 commit f607cda39a44d1cc1114f50ce98c1b6fdd88931f
Showing with 0 additions and 14 deletions.
  1. +0 −14 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));

0 comments on commit f607cda

Please sign in to comment.
You can’t perform that action at this time.