From df49a00d53e7b874f8146a73329b6f0a0a88e5df 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(-) diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c index 2b1ade5a..11e8eba0 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