|
@@ -189,7 +189,7 @@ static void qemu_spice_create_update(SimpleSpiceDisplay *ssd)
|
|
|
{
|
|
|
static const int blksize = 32;
|
|
|
int blocks = DIV_ROUND_UP(surface_width(ssd->ds), blksize);
|
|
|
- int dirty_top[blocks];
|
|
|
+ g_autofree int *dirty_top = NULL;
|
|
|
int y, yoff1, yoff2, x, xoff, blk, bw;
|
|
|
int bpp = surface_bytes_per_pixel(ssd->ds);
|
|
|
uint8_t *guest, *mirror;
|
|
@@ -198,6 +198,7 @@ static void qemu_spice_create_update(SimpleSpiceDisplay *ssd)
|
|
|
return;
|
|
|
};
|
|
|
|
|
|
+ dirty_top = g_new(int, blocks);
|
|
|
for (blk = 0; blk < blocks; blk++) {
|
|
|
dirty_top[blk] = -1;
|
|
|
}
|