Re: [Spice-devel] [PATCH spice-server 07/10] red-channel-client: Avoid weird memory references using MarkerPipeItem

2017-09-12 Thread Frediano Ziglio
> > On Tue, Sep 12, 2017 at 04:15:15AM -0400, Frediano Ziglio wrote: > > > > > > On Mon, Sep 11, 2017 at 11:15:44AM +0100, Frediano Ziglio wrote: > > > > Instead of having MarkerPipeItem pointing to a variable on an external > > > > stuff with the possibility to forget to reset it or having

Re: [Spice-devel] [PATCH spice-server 07/10] red-channel-client: Avoid weird memory references using MarkerPipeItem

2017-09-12 Thread Christophe Fergeau
On Tue, Sep 12, 2017 at 04:15:15AM -0400, Frediano Ziglio wrote: > > > > On Mon, Sep 11, 2017 at 11:15:44AM +0100, Frediano Ziglio wrote: > > > Instead of having MarkerPipeItem pointing to a variable on an external > > > stuff with the possibility to forget to reset it or having possibly > > >

Re: [Spice-devel] [PATCH spice-server 07/10] red-channel-client: Avoid weird memory references using MarkerPipeItem

2017-09-12 Thread Frediano Ziglio
> > On Mon, Sep 11, 2017 at 11:15:44AM +0100, Frediano Ziglio wrote: > > Instead of having MarkerPipeItem pointing to a variable on an external > > stuff with the possibility to forget to reset it or having possibly > > dangling pointers use reference counting to keep the item and > > mark the

Re: [Spice-devel] [PATCH spice-server 07/10] red-channel-client: Avoid weird memory references using MarkerPipeItem

2017-09-12 Thread Christophe Fergeau
On Mon, Sep 11, 2017 at 11:15:44AM +0100, Frediano Ziglio wrote: > Instead of having MarkerPipeItem pointing to a variable on an external > stuff with the possibility to forget to reset it or having possibly > dangling pointers use reference counting to keep the item and > mark the item when sent.