summaryrefslogtreecommitdiff
path: root/UnoControls/source/base/basecontainercontrol.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2010-12-11 13:11:25 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2010-12-11 15:22:55 +0100
commit52b66899d1fe579e3c89cb6f65ab505cc563a990 (patch)
tree03c080d3ef21f26a83e505abc84760b04fe2411a /UnoControls/source/base/basecontainercontrol.cxx
parent9df180a0fcf085686c16c4720fe4e983208d5658 (diff)
BaseContainerControl::dispose: fix memory leak
Diffstat (limited to 'UnoControls/source/base/basecontainercontrol.cxx')
-rw-r--r--UnoControls/source/base/basecontainercontrol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx
index b7b9fc9d17ab..469146b018a5 100644
--- a/UnoControls/source/base/basecontainercontrol.cxx
+++ b/UnoControls/source/base/basecontainercontrol.cxx
@@ -229,7 +229,7 @@ void SAL_CALL BaseContainerControl::dispose() throw( RuntimeException )
for ( nCount = 0; nCount < nMaxCount; ++nCount )
{
- delete maControlInfoList[ 0 ];
+ delete maControlInfoList[ nCount ];
}
maControlInfoList.clear();