summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-12-01 00:20:38 -0500
committerlukefromdc <[email protected]>2018-12-03 17:39:41 -0500
commitdf49a00d53e7b874f8146a73329b6f0a0a88e5df (patch)
tree435ae1ed5e6cfae582238692e92bd4f7093c5b91 /src
parent157d047cf3fced73a44f1fd0662ff1151c67bcfb (diff)
downloadcaja-df49a00d53e7b874f8146a73329b6f0a0a88e5df.tar.bz2
caja-df49a00d53e7b874f8146a73329b6f0a0a88e5df.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/caja-places-sidebar.c2
1 files changed, 1 insertions, 1 deletions
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)
{