Re: Gio & memory management
- From: nico <nico yojik eu>
- To: gtk-app-devel-list gnome org
- Subject: Re: Gio & memory management
- Date: Tue, 14 Oct 2008 19:07:24 +0200
Thank you Nicola,
Yes, that's it.
Now everything seems to be alright (I'm stupid).
Regards,
Nicolas
Because you are unrefing it in the wrong place. Now you have:
while ((file_info = g_file_enumerator_next_file()) != NULL) {
...
}
g_object_unref(file_info);
Here file_info is surely NULL and you're lacking tons of refs.
You must do instead:
while ((file_info = g_file_enumerator_next_file()) != NULL) {
...
g_object_unref(file_info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]