Re: memory management with glibmm & giomm



Thank you, Armin
I propose not to call unreference on your own, but instead wait for a
glibmm release with the bug fixed. Or, if you really need this to work
correctly and you can't wait for a release, you could maybe do something
like:

Glib::RefPtr<Gio::FileInfo> info = enumerator->next_file();
if(G_OBJECT(info->gobj())->ref_count > 1) info->unreference();

Yes, I'll do that.
http://bugzilla.gnome.org/show_bug.cgi?id=556387
Thank you for your bug report, your sample code and your patch!

Regards,
Nicolas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]