forked from AuroraMiddleware/gtk
Avoid an useless ref/unref
The GMount will be kept alive by the async operation itself.
This commit is contained in:
parent
ceb631b60f
commit
0523b2f719
@ -2163,7 +2163,6 @@ unmount_mount_cb (GObject *source_object,
|
||||
/* FIXME: we need to switch to a path that is available now - $HOME? */
|
||||
|
||||
g_object_unref (sidebar);
|
||||
g_object_unref (mount);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -2221,10 +2220,7 @@ do_unmount (GMount *mount,
|
||||
if (mount != NULL) {
|
||||
GMountOperation *mount_op;
|
||||
|
||||
g_object_ref (mount);
|
||||
|
||||
mount_op = get_unmount_operation (sidebar);
|
||||
|
||||
g_mount_unmount_with_operation (mount,
|
||||
0,
|
||||
mount_op,
|
||||
|
Loading…
Reference in New Issue
Block a user