diff options
author | Corentin Chary <corentincj@iksaif.net> | 2010-07-07 20:58:00 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-26 17:36:14 -0500 |
commit | b5469b1104a4b0c870dd805d9fb9d844b56d987e (patch) | |
tree | 446f71d12ed1506ccb6c2973c292c78c58562fb4 /ui/vnc-enc-tight.c | |
parent | d1af0e056a5a3681dc82a2e715bb292c6d300def (diff) | |
download | qemu-b5469b1104a4b0c870dd805d9fb9d844b56d987e.zip qemu-b5469b1104a4b0c870dd805d9fb9d844b56d987e.tar.gz qemu-b5469b1104a4b0c870dd805d9fb9d844b56d987e.tar.bz2 |
vnc: fix tight png memory leak
The tight.png buffer was never released.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/vnc-enc-tight.c')
-rw-r--r-- | ui/vnc-enc-tight.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |