qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 12/18] vnc: fix tight png memory leak


From: Corentin Chary
Subject: [Qemu-devel] [PATCH v2 12/18] vnc: fix tight png memory leak
Date: Wed, 7 Jul 2010 20:58:00 +0200

The tight.png buffer was never released.

Signed-off-by: Corentin Chary <address@hidden>
---
 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
 }
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]