Re: [gob-list] signal referencing

From: George <jirka_at_5z.com>
Date: Thu, 16 Jan 2003 11:54:27 -0800

On Thu, Jan 16, 2003 at 02:14:43PM +0100, BRUGUIER Nicolas wrote:
> hi,
>
> I attached with this message a small GTK application which shows my
> problem with referencement objects in the signals.
>
> When create
> obj->ref_count = 1 (OK)
>
> When send signal without unref :
> > signal last NONE (NONE)
> > void signal_without_unref(self);
> in signal obj->ref_count = 2 (OK)
> after signal obj->ref_count = 2 (my problem)
>
> When send signal with unref
> > signal last NONE (NONE)
> > void signal_with_unref(self);
> > {
> > g_object_unref(self);
> > }
> in signal obj->ref_count = 2 (OK)
> after signal obj->ref_count = 1 (OK)
>
> apparently, the object is not unreferenced at the end of the signal.
>
> I use gob 2.0.4 and glib 2.0.6

OK! Finally got it (sorry for being so dense). I've actually found the bug
in gob. It had a leak in the signal emission routine as it didn't unset the
parameter GValues. I'll release a 2.0.5 shortly ...

George

-- 
George <jirka_at_5z.com>
   It is a miracle that curiosity survives formal education.
                       -- Albert Einstein
Received on Thu Jan 16 2003 - 14:54:36 CST

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:05:02 CDT