From b5469b1104a4b0c870dd805d9fb9d844b56d987e Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Wed, 7 Jul 2010 20:58:00 +0200 Subject: vnc: fix tight png memory leak The tight.png buffer was never released. Signed-off-by: Corentin Chary Signed-off-by: Anthony Liguori --- ui/vnc-enc-tight.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/vnc-enc-tight.c') diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 52b81f3..3f19df2 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -1674,4 +1674,7 @@ void vnc_tight_clear(VncState *vs) #ifdef CONFIG_VNC_JPEG buffer_free(&vs->tight.jpeg); #endif +#ifdef CONFIG_VNC_PNG + buffer_free(&vs->tight.png); +#endif } -- cgit v1.1