![]() |
bug in XmlDocument.cpp (viz-plugins) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: bug in XmlDocument.cpp (viz-plugins) (/showthread.php?tid=2589) |
- questor/fused - 2004-04-05 from cxmldocument::load(char*) Quote: m_doc = (char*) malloc(m_size); //*********** malloc and delete mixed. baaad. and the buffer is not deleted in the destructor => memleak... - questor/fused - 2004-04-05 i thought about that a bit and found the answer by myself: there's a malloc, because "new" would've needed another import-function (??2@yapaxi@z from msvcr71) and that's not included in the msvcr71-emulation-layer! and mixing malloc and delete seems to break the whole structure (when you include the import-functions into the emu-layer). oh, and not including the functions into the emulayer the delete in the function does nothing, because it's an unemulated import => dummy-import => do nothing and everything is ok... - questor/fused - 2004-04-05 corrected cxmldocument (parts of it): Quote:void cxmldocument::create(char* szstring) and every viz-plugin using it needs a recompile... |