[Spice-commits] common/gdi_canvas.c
Izik Eidus
izik at kemper.freedesktop.org
Mon Apr 5 12:53:03 PDT 2010
common/gdi_canvas.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e1a4d91896dc06aae266b7f9238833c43463edab
Author: Izik Eidus <ieidus at redhat.com>
Date: Mon Apr 5 22:57:37 2010 +0300
spice: common: gdi_canvas fix gdi objects leak
BitmapMask was used by the draw_text function as well
therefore we need to mark from_surface = 0 if we want
it to release the boject...
(Was evil, took me few hours to understand from where
the leak come...)
Signed-off-by: Izik Eidus <ieidus at redhat.com>
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index 75dff69..4362b38 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -918,6 +918,7 @@ static void draw_str_mask_bitmap(struct GdiCanvas *canvas,
return;
}
+ bitmap.from_surface = 0;
bitmap.cache = 0;
bitmap_data = create_bitmap(&bitmap.hbitmap, &bitmap.prev_hbitmap,
&bitmap.dc, NULL,
More information about the Spice-commits
mailing list