From 116ba41319d9e17b1b83b559fb1b5c88afe32d46 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Sat, 1 Dec 2018 01:05:28 -0500 Subject: caja-places-sidebar: replace two other uses of g_drive_poll_for_media_finish Both of these uses are incorrect and if this code is ever run would likely segfault. Adapted from https://github.com/linuxmint/nemo/commit/4ffea61b26033da1305ab8287058044065a1c101 --- src/caja-places-sidebar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c index f41bd04c..868ff725 100644 --- a/src/caja-places-sidebar.c +++ b/src/caja-places-sidebar.c @@ -1899,7 +1899,7 @@ drive_start_from_bookmark_cb (GObject *source_object, char *name; error = NULL; - if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error)) + if (!g_drive_start_finish (G_DRIVE (source_object), res, &error)) { if (error->code != G_IO_ERROR_FAILED_HANDLED) { @@ -2488,7 +2488,7 @@ drive_start_cb (GObject *source_object, char *name; error = NULL; - if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error)) + if (!g_drive_start_finish (G_DRIVE (source_object), res, &error)) { if (error->code != G_IO_ERROR_FAILED_HANDLED) { -- cgit v1.2.1