diff options
| author | Claudio Saavedra <[email protected]> | 2011-01-14 00:53:16 +0200 | 
|---|---|---|
| committer | raveit65 <[email protected]> | 2018-07-11 08:39:23 +0200 | 
| commit | f607cda39a44d1cc1114f50ce98c1b6fdd88931f (patch) | |
| tree | a7639de7d3af2c4c00b33eaef2c09eb445f63dc8 /src | |
| parent | 9b79e09d57c87be17359a25277bbf3831395e2bf (diff) | |
| download | eom-f607cda39a44d1cc1114f50ce98c1b6fdd88931f.tar.bz2 eom-f607cda39a44d1cc1114f50ce98c1b6fdd88931f.tar.xz | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/eom-list-store.c | 14 | 
1 files changed, 0 insertions, 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 @@ -43,19 +43,6 @@ struct _EomListStorePrivate {  };  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)  {  	g_file_monitor_cancel (G_FILE_MONITOR (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)); | 
