Skip to content
Permalink
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 1, 2018
1 parent c12b61b commit 884870c662f042e8bab6b2985eb5fe63db706a33
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 884870c

Please sign in to comment.
You can’t perform that action at this time.