Skip to content
Permalink
Browse files

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 linuxmint/nemo@4ffea61
  • Loading branch information...
lukefromdc committed Dec 1, 2018
1 parent df49a00 commit 311ab2b3568f9fa17e5bdbea590d8c0e685826c4
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)
{

0 comments on commit 311ab2b

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