Superb work Felix. It works reliably here.
If you want to make the code more concise and ultimately less prone to memory leaks you may want to use GObjectScopedPointer from libunity-2d-private/src/gscopedpointer.h
You would use it like the following:
GObjectScopedPointer<GMount> g_volume_get_mount(m_volume);
[...]
if (g_mount_can_unmount(mount.data())) {
[...]
Superb work Felix. It works reliably here. inter from libunity- 2d-private/ src/gscopedpoin ter.h
If you want to make the code more concise and ultimately less prone to memory leaks you may want to use GObjectScopedPo
You would use it like the following:
GObjectScopedPo inter<GMount> g_volume_ get_mount( m_volume) ; can_unmount( mount.data( ))) {
[...]
if (g_mount_
[...]