On Fri, Aug 25, 2017 at 01:07:17PM -0400, Frediano Ziglio wrote: > Reference counting and owning > ----------------------------- > -> pointer > ---> pointer with owning (mostly GObject ref counting) > > ChannelClient -> Client > Client ---> ChannelClient Something which occurred to me during the night, we have Client owning objects running in other threads (for example, DisplayChannelClient), this means among other things that if we were to g_object_unref(DisplayChannelClient) from the Client thread, DisplayChannelClient dispose/finalize are going to be run from the Client thread rather than from the DisplayChannelClient thread. This could be unexpected. Maybe it would be better if it was Channel which owned that reference rather than Client? Christophe _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel