Skip to content
Browse files
Fix segfault on stopping USB hard drives
Fix #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
  • Loading branch information
lukefromdc committed Dec 3, 2018
1 parent 157d047 commit df49a00d53e7b874f8146a73329b6f0a0a88e5df
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit df49a00

Please sign in to comment.