Skip to content

Commit 116ba41

Browse files
committed
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
1 parent 884870c commit 116ba41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/caja-places-sidebar.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ drive_start_from_bookmark_cb (GObject *source_object,
18991899
char *name;
19001900

19011901
error = NULL;
1902-
if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
1902+
if (!g_drive_start_finish (G_DRIVE (source_object), res, &error))
19031903
{
19041904
if (error->code != G_IO_ERROR_FAILED_HANDLED)
19051905
{
@@ -2488,7 +2488,7 @@ drive_start_cb (GObject *source_object,
24882488
char *name;
24892489

24902490
error = NULL;
2491-
if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
2491+
if (!g_drive_start_finish (G_DRIVE (source_object), res, &error))
24922492
{
24932493
if (error->code != G_IO_ERROR_FAILED_HANDLED)
24942494
{

0 commit comments

Comments
 (0)