diff options
Diffstat (limited to 'ui/vnc-palette.c')
-rw-r--r-- | ui/vnc-palette.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c index c478060865..13ece42160 100644 --- a/ui/vnc-palette.c +++ b/ui/vnc-palette.c @@ -69,9 +69,7 @@ void palette_init(VncPalette *palette, size_t max, int bpp) void palette_destroy(VncPalette *palette) { - if (palette == NULL) { - qemu_free(palette); - } + qemu_free(palette); } int palette_put(VncPalette *palette, uint32_t color) |