Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 Jul 11, 2018
1 parent 9b79e09 commit f607cda
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/eom-list-store.c
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit f607cda

Please sign in to comment.