From 1a0b288a8f1060ffb306f258ce66e73d7b843e87 Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Wed, 2 Dec 2020 22:01:42 -0800 Subject: [PATCH] giolister: Remove extra g_object_unref GioLister::UnmountDevice calls g_object_unref on the GVolume object held by a DeviceInfo. This appears to be left over from a time before DeviceInfo held onto the volume. --- src/devices/giolister.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/devices/giolister.cpp b/src/devices/giolister.cpp index c7f667247..a019b9262 100644 --- a/src/devices/giolister.cpp +++ b/src/devices/giolister.cpp @@ -520,7 +520,6 @@ void GioLister::UnmountDevice(const QString& id) { g_volume_eject_with_operation( info.volume_, G_MOUNT_UNMOUNT_NONE, nullptr, nullptr, (GAsyncReadyCallback)VolumeEjectFinished, nullptr); - g_object_unref(info.volume_); return; } }