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 884870c commit 116ba41319d9e17b1b83b559fb1b5c88afe32d46
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 116ba41

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