Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 3, 2018
1 parent df49a00 commit 311ab2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caja-places-sidebar.c
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 311ab2b

Please sign in to comment.