Re: GtkTreeModelFilter
- From: Andrusky <jpandrusky gmail com>
- To: gtk-app-dev <gtk-app-devel-list gnome org>
- Subject: Re: GtkTreeModelFilter
- Date: Wed, 25 May 2005 10:51:24 -0600
On May 25, 2005 [18:11] +0200, Olivier Sessink <lists olivier pk wau nl> wrote:
Andrusky wrote:
What's the best way to change the virtual root of a GtkTreeModelFilter?
I did a g_object_unref it to it (it has only 1 reference now) and then
tried to just replace the filter with a new one. After I did this, the
reference count drop to 0, so I'm assuming it is supposed to be deleted.
When I run valgrind on the program however, I leak memory every time
I replace the filter.
as far as I know, there is no way to change it (the property is
read-only, and there is no _set() function), and you'll have to
construct a new filter, and unref the old one..
That is at least what I do.
regards,
Olivier Sessink
Any clue as to the memory leak I keep experiencing? I know the reference count
of the old filter drops to 0, but it seems that I keep losing memory.
--
Cheers,
John-Paul Andrusky
<jpandrusky_at_gmail_dot_com>
GnuPG Key ID: 01298022
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]