summaryrefslogtreecommitdiff
path: root/src/caja-places-sidebar.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-12-01 00:20:38 -0500
committerlukefromdc <[email protected]>2018-12-02 06:49:35 +0000
commit884870c662f042e8bab6b2985eb5fe63db706a33 (patch)
tree712cfce91daeaff2d72a766b14cd7e9cf7cc244c /src/caja-places-sidebar.c
parentc12b61baf724eb1df58064b19f907c4b51fa762f (diff)
downloadcaja-884870c662f042e8bab6b2985eb5fe63db706a33.tar.bz2
caja-884870c662f042e8bab6b2985eb5fe63db706a33.tar.xz
Fix segfault on stopping USB hard drives
Fix https://github.com/mate-desktop/caja/issues/1046 drive_stop_cb should never have used g_drive_poll_for_media_finish which is for ejectable media in a fixed drive (e.g CD drive) and not for stopping a removable drive
Diffstat (limited to 'src/caja-places-sidebar.c')
-rw-r--r--src/caja-places-sidebar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index 884131b0..f41bd04c 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -2548,7 +2548,7 @@ drive_stop_cb (GObject *source_object,
g_object_unref (window);
error = NULL;
- if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
+ if (!g_drive_stop_finish(G_DRIVE (source_object), res, &error))
{
if (error->code != G_IO_ERROR_FAILED_HANDLED)
{