]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
vnc: fix tight png memory leak
authorCorentin Chary <corentincj@iksaif.net>
Wed, 7 Jul 2010 18:58:00 +0000 (20:58 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 26 Jul 2010 22:36:14 +0000 (17:36 -0500)
The tight.png buffer was never released.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc-enc-tight.c

index 52b81f3a35239ca999435a9f104976b40a4c22ea..3f19df2ba79700ecc60187eb22ee3592e6d66434 100644 (file)
@@ -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
 }