- Timestamp:
- Nov 8, 2010 1:00:42 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImplExport.cpp
r33698 r33835 1725 1725 /* Write the ovf file to disk. */ 1726 1726 vrc = RTSha1WriteBuf(strOvfFile.c_str(), pvBuf, cbSize, pCallbacks, pStorage); 1727 RTMemFree(pvBuf);1728 1727 if (RT_FAILURE(vrc)) 1729 1728 throw setError(VBOX_E_FILE_ERROR, -
trunk/src/VBox/Runtime/r3/xml.cpp
r33700 r33835 1463 1463 1464 1464 XmlMemWriter::XmlMemWriter() 1465 : m_pBuf(0) 1465 1466 { 1466 1467 } … … 1468 1469 XmlMemWriter::~XmlMemWriter() 1469 1470 { 1471 if (m_pBuf) 1472 xmlFree(m_pBuf); 1470 1473 } 1471 1474 1472 1475 void XmlMemWriter::write(const Document &doc, void **ppvBuf, size_t *pcbSize) 1473 1476 { 1474 xmlChar* pBuf; 1477 if (m_pBuf) 1478 { 1479 xmlFree(m_pBuf); 1480 m_pBuf = 0; 1481 } 1475 1482 int size; 1476 xmlDocDumpFormatMemory(doc.m->plibDocument, &pBuf, &size, 1);1477 *ppvBuf = pBuf;1483 xmlDocDumpFormatMemory(doc.m->plibDocument, (xmlChar**)&m_pBuf, &size, 1); 1484 *ppvBuf = m_pBuf; 1478 1485 *pcbSize = size; 1479 1486 }
Note:
See TracChangeset
for help on using the changeset viewer.