diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-14 15:48:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-14 19:54:26 +0000 |
commit | 9f0997eb167d0ef2193a59d43ab55ea5f13ebaac (patch) | |
tree | 815c61b4c26e17a1f51c503f4f1090b2b6b102c4 /basic/source/runtime/methods1.cxx | |
parent | do not use OUString::number() to "format" numeric values (diff) | |
download | core-9f0997eb167d0ef2193a59d43ab55ea5f13ebaac.tar.gz core-9f0997eb167d0ef2193a59d43ab55ea5f13ebaac.zip |
Resolves: tdf#59222 Crash in Basic with an array of values...
from a range address
trying to make all SbxVariables reference count their parents
is ludiciously hard, so just reference count this one known
crashing case
Change-Id: Ie1fa6624e8184146dd00d766cdbacef674153ef6
Reviewed-on: https://gerrit.libreoffice.org/26272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic/source/runtime/methods1.cxx')
-rw-r--r-- | basic/source/runtime/methods1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 3a361038a344..6bddfd5c8570 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -830,7 +830,7 @@ RTLFUNC(Array) for( sal_uInt16 i = 0 ; i < nArraySize ; i++ ) { SbxVariable* pVar = rPar.Get(i+1); - SbxVariable* pNew = new SbxVariable( *pVar ); + SbxVariable* pNew = new SbxEnsureParentVariable(*pVar); pNew->SetFlag( SbxFlagBits::Write ); short index = static_cast< short >(i); if ( bIncIndex ) |