diff options
Diffstat (limited to 'server/tests/test_display_base.c')
-rw-r--r-- | server/tests/test_display_base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index d8ff8d1f..20c0e478 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -42,7 +42,8 @@ static void test_spice_destroy_update(SimpleSpiceUpdate *update) return; } if (update->drawable.clip.type != SPICE_CLIP_TYPE_NONE) { - free((uint8_t*)update->drawable.clip.data); + uint8_t *ptr = (uint8_t*)update->drawable.clip.data; + free(ptr); } free(update->bitmap); free(update); |