1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-23 16:01:43 +01:00

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.
This commit is contained in:
Jim Broadus 2020-12-02 22:01:42 -08:00 committed by John Maguire
parent abc70554f3
commit 1a0b288a8f

View File

@ -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;
}
}