writerfilter07: resolved memory leak in OOXMLTableImpl::resolve

This commit is contained in:
Henning Brinkmann 2010-02-16 16:50:35 +01:00
parent f96a1d437d
commit 1e0de25a29
2 changed files with 2 additions and 1 deletions

View file

@ -153,6 +153,7 @@ public:
class WRITERFILTER_DLLPUBLIC Table
{
public:
typedef boost::shared_ptr<Table> Pointer_t;
/**
Receives an entry of the table.

View file

@ -723,7 +723,7 @@ OOXMLTableImpl::~OOXMLTableImpl()
void OOXMLTableImpl::resolve(Table & rTable)
{
#ifdef DEBUG_PROTOCOL
Table * pTable = new TableProtocol(&rTable, debug_logger);
Table::Pointer_t pTable(new TableProtocol(&rTable, debug_logger));
#else
Table * pTable = &rTable;
#endif