From 884870c662f042e8bab6b2985eb5fe63db706a33 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Sat, 1 Dec 2018 00:20:38 -0500 Subject: 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 --- src/caja-places-sidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.1