[gvfs/wip/oholy/udisks2-leaks: 2/2] udisks2: Fix leaks of drive icons/description
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/oholy/udisks2-leaks: 2/2] udisks2: Fix leaks of drive icons/description
- Date: Mon, 2 Mar 2020 12:32:16 +0000 (UTC)
commit 3b97330d77fcd51afee06bdb0238dd4a3b708244
Author: Ondrej Holy <oholy redhat com>
Date: Mon Mar 2 13:18:27 2020 +0100
udisks2: Fix leaks of drive icons/description
Drive icons/description are leaked currently when also media
icon/description is available. Let's add missing `g_clear_object`
resp. `g_free` calls to fix those leaks.
https://gitlab.gnome.org/GNOME/gvfs/issues/452
monitor/udisks2/gvfsudisks2volume.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/monitor/udisks2/gvfsudisks2volume.c b/monitor/udisks2/gvfsudisks2volume.c
index 89a9f29d..8c0794d7 100644
--- a/monitor/udisks2/gvfsudisks2volume.c
+++ b/monitor/udisks2/gvfsudisks2volume.c
@@ -407,6 +407,9 @@ update_volume (GVfsUDisks2Volume *volume)
g_free (media_desc);
g_clear_object (&media_icon);
g_clear_object (&media_symbolic_icon);
+ g_free (drive_desc);
+ g_clear_object (&drive_icon);
+ g_clear_object (&drive_symbolic_icon);
/* Only automount drives attached to the same seat as we're running on
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]