Re: [gob-list] signal referencing

From: BRUGUIER Nicolas <gandalfn_at_club-internet.fr>
Date: 16 Jan 2003 14:14:43 +0100

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

Regards

Received on Thu Jan 16 2003 - 08:16:25 CST

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