Unregister matchers when destroying proxies

Colin Walters walters at verbum.org
Tue Jul 26 05:04:27 EST 2005

On Sat, 2005-07-16 at 09:43 +0100, Ross Burton wrote:
> On Fri, 2005-07-15 at 16:36 -0400, Colin Walters wrote:
> > > When a DBusGProxy is registered, it adds a match to receive messages
> > > from it.  However, this match is not removed when the proxies are
> > > removed, attaching patch to do this.
> > 
> > Hm, shouldn't matches be reference counted or something?  Will this
> > break if you have two proxies for the same object then unref one?
> You wrote the code originally, I hope'd you know if this was correct.
> As I read the code, there is a list of proxies for every tristring
> name/interface/path, and the unmatcher is only called when the list is
> emptied (at least that was the intention of the patch).

Yeah, sounds right to me...let's put this in then.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050725/a345a470/attachment.pgp

More information about the dbus mailing list