Re: [Spice-devel] Allocation style in QXLDOD

2017-03-24 Thread Vadim Rozenfeld
On Tue, 2017-03-21 at 19:12 +0100, Christophe de Dinechin wrote: > Hi Vadim, > > > Looking at the code for QxlDod.cpp, I see allocations that look like > this: > > 5c52e50b (Vadim Rozenfeld 2014-09-02 17:36:27 +1000 > 3169) m_ModeNumbers = reinterpret_cast (new > (PagedPool)  

[Spice-devel] Allocation style in QXLDOD

2017-03-21 Thread Christophe de Dinechin
Hi Vadim, Looking at the code for QxlDod.cpp, I see allocations that look like this: 5c52e50b (Vadim Rozenfeld 2014-09-02 17:36:27 +1000 3169) m_ModeNumbers = reinterpret_cast (new (PagedPool) BYTE [sizeof (USHORT) * ModeCount]); and corresponding deallocations that look