Skip to content

Commit f607cda

Browse files
csaavedraraveit65
authored and
raveit65
committed
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
1 parent 9b79e09 commit f607cda

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Diff for: src/eom-list-store.c

-14
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,6 @@ struct _EomListStorePrivate {
4242
GMutex mutex; /* Mutex for saving the jobs in the model */
4343
};
4444

45-
static void
46-
eom_list_store_finalize (GObject *object)
47-
{
48-
EomListStore *store = EOM_LIST_STORE (object);
49-
50-
if (store->priv != NULL) {
51-
g_free (store->priv);
52-
store->priv = NULL;
53-
}
54-
55-
G_OBJECT_CLASS (eom_list_store_parent_class)->finalize (object);
56-
}
57-
5845
static void
5946
foreach_monitors_free (gpointer data, gpointer user_data)
6047
{
@@ -93,7 +80,6 @@ eom_list_store_class_init (EomListStoreClass *klass)
9380
{
9481
GObjectClass *object_class = G_OBJECT_CLASS (klass);
9582

96-
object_class->finalize = eom_list_store_finalize;
9783
object_class->dispose = eom_list_store_dispose;
9884

9985
g_type_class_add_private (object_class, sizeof (EomListStorePrivate));

0 commit comments

Comments
 (0)