projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1af0e0
)
vnc: fix tight png memory leak
author
Corentin Chary
<corentincj@iksaif.net>
Wed, 7 Jul 2010 18:58:00 +0000
(20:58 +0200)
committer
Anthony 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
patch
|
blob
|
history
diff --git
a/ui/vnc-enc-tight.c
b/ui/vnc-enc-tight.c
index 52b81f3a35239ca999435a9f104976b40a4c22ea..3f19df2ba79700ecc60187eb22ee3592e6d66434 100644
(file)
--- 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
}