Re: [REGRESSION] [PATCH] ->iter_parent returns invalid tree iterators



"muppet" <scott asofyet org> writes:

the last thing that prevent me from running rpmdrake was that
->iter_parent returned an invalid iterator, because it returned a
pointer on a stack object, which of course may have been overwriten
since (gtk+ developers should really think about adding magic numbers
to their structs for debugging purpose)

here's the fix:

using GtkTreeIter_copy instead of GtkTreeIter_own does this for you.
;-)

but we pass args by reference here, can we use GtkTreeIter_copy as
type in the argument list ?

$model->iter_nth_child was doing the same thing.  i'm ashamed to
$model->admit that i wrote that file.

anyway, it's all been converted to use _copy.  please have a go at
it and see if i've broken it again.

if only i could access cvs ... :-(




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