Skip to content

Commit 884870c

Browse files
committed
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
1 parent c12b61b commit 884870c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/caja-places-sidebar.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@ drive_stop_cb (GObject *source_object,
25482548
g_object_unref (window);
25492549

25502550
error = NULL;
2551-
if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
2551+
if (!g_drive_stop_finish(G_DRIVE (source_object), res, &error))
25522552
{
25532553
if (error->code != G_IO_ERROR_FAILED_HANDLED)
25542554
{

0 commit comments

Comments
 (0)