git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add possibility to select multimode instead of pal/ntsc for TVs with support
[enigma2.git]
/
lib
/
gdi
/
gpixmap.cpp
diff --git
a/lib/gdi/gpixmap.cpp
b/lib/gdi/gpixmap.cpp
index 1ecb83d3f18a9359cc42d0feb846fcf12c20c4b8..96b599be60c8a26831781e29f278229c5c09e9e1 100644
(file)
--- a/
lib/gdi/gpixmap.cpp
+++ b/
lib/gdi/gpixmap.cpp
@@
-106,7
+106,7
@@
gSurface::gSurface(eSize size, int _bpp, int accel)
clut.data = 0;
if (!data)
clut.data = 0;
if (!data)
- data =
malloc(y * stride)
;
+ data =
new unsigned char [y * stride]
;
type = 1;
}
type = 1;
}
@@
-118,9
+118,9
@@
gSurface::~gSurface()
if (data_phys)
gAccel::getInstance()->accelFree(data_phys);
else
if (data_phys)
gAccel::getInstance()->accelFree(data_phys);
else
-
free(data)
;
+
delete [] (unsigned char*)data
;
- delete[] clut.data;
+ delete
[] clut.data;
}
}
}
}