> 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())) {
> [...]
I didn't know you had smart pointers for GObjects, glad to hear :)
> Superb work Felix. It works reliably here. inter from libunity-2d- src/gscopedpoin ter.h inter<GMount> g_volume_ get_mount( m_volume) ; can_unmount( mount.data( ))) {
> If you want to make the code more concise and ultimately less prone to memory
> leaks you may want to use GObjectScopedPo
> private/
> You would use it like the following:
>
> GObjectScopedPo
> [...]
> if (g_mount_
> [...]
I didn't know you had smart pointers for GObjects, glad to hear :)