summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-12-01 01:05:28 -0500
committerlukefromdc <[email protected]>2018-12-03 17:39:57 -0500
commit311ab2b3568f9fa17e5bdbea590d8c0e685826c4 (patch)
tree2d90d9f988ebc9e41e2813450d79c62c23a2969a
parentdf49a00d53e7b874f8146a73329b6f0a0a88e5df (diff)
downloadcaja-311ab2b3568f9fa17e5bdbea590d8c0e685826c4.tar.bz2
caja-311ab2b3568f9fa17e5bdbea590d8c0e685826c4.tar.xz
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
-rw-r--r--src/caja-places-sidebar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index 11e8eba0..668d171e 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)
{