From a9940e0f5a946ce34260a6583fc8b62835957b64 Mon Sep 17 00:00:00 2001 From: Nvertigo Date: Wed, 11 Feb 2015 14:41:07 +0100 Subject: [PATCH] hotfix for 2.1.10. --- osd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osd.c b/osd.c index 431afde..b0c4356 100644 --- a/osd.c +++ b/osd.c @@ -62,7 +62,7 @@ void cDBusOsd::Flush(void) int x, y; const uint8_t *pixel; png::image *pngfile; - while (cPixmapMemory *pm = RenderPixmaps()) { + while (cPixmapMemory *pm = dynamic_cast(RenderPixmaps())) { /*write = true;*/ vp = &pm->ViewPort(); vx = vp->X(); @@ -83,7 +83,7 @@ void cDBusOsd::Flush(void) counter++; delete pngfile; - delete pm; + DestroyPixmap(pm); } } #endif -- 2.0.5