summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui/dbtree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/dbui/dbtree.cxx')
-rw-r--r--sw/source/uibase/dbui/dbtree.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx
index 8a635706d20a..caa9df67cd97 100644
--- a/sw/source/uibase/dbui/dbtree.cxx
+++ b/sw/source/uibase/dbui/dbtree.cxx
@@ -186,7 +186,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSwDBTreeList(vcl::Wind
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nStyle |= WB_BORDER;
- return VclPtr<SwDBTreeList>::Create(pParent, nStyle);
+ return new SwDBTreeList(pParent, nStyle);
}
Size SwDBTreeList::GetOptimalSize() const
@@ -202,6 +202,7 @@ SwDBTreeList::~SwDBTreeList()
void SwDBTreeList::dispose()
{
delete pImpl;
+ pImpl = NULL;
SvTreeListBox::dispose();
}