From 15ace91a37da116f7b08481539c19958e4ef7da9 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 1 Feb 2021 17:02:07 +0100 Subject: media-keys: memory leak --- plugins/media-keys/msd-media-keys-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/media-keys/msd-media-keys-manager.c') diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c index fe33351..750acf5 100644 --- a/plugins/media-keys/msd-media-keys-manager.c +++ b/plugins/media-keys/msd-media-keys-manager.c @@ -616,7 +616,7 @@ do_eject_action (MsdMediaKeysManager *manager) if (fav_drive != NULL) fav_drive = g_object_ref (fav_drive); - g_list_foreach (drives, (GFunc) g_object_unref, NULL); + g_list_free_full (drives, g_object_unref); if (fav_drive == NULL) return; -- cgit v1.2.1