blob: 2a30b179e3ec8c8c50099099a2943edbc99e6a30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/play.cpp b/play.cpp
index 269426d..ccf87c2 100644
--- a/play.cpp
+++ b/play.cpp
@@ -1352,7 +1352,7 @@ void cMyOsd::Flush(void)
}
LOCK_PIXMAPS;
- while ((pm = RenderPixmaps())) {
+ while ((pm = dynamic_cast<cPixmapMemory *>(RenderPixmaps()))) {
int x;
int y;
int w;
@@ -1367,7 +1367,7 @@ void cMyOsd::Flush(void)
pm->Data());
OsdDrawARGB(x, y, w, h, pm->Data());
- delete pm;
+ DestroyPixmap(pm);
}
cMyOsd::Dirty = 0;
}
|