Kaydet (Commit) c79c5d80 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

tdf#92446: Revert apparently bogus attempt at fixing a memory leak

6b4c596b "Fix memory leak for BASIC sub (as well
as void function)," from just looking at the few lines of code in isolation, and
their revision history, looked like a plausible and effective approach to fix
the leaks reported by CppunitTest_basci_vba when run under lsan.

However, tdf#92446 indicates that that innocent-looking change had rather dire
consequences.  So revert it and leave a fix for the memory leak to somebody who
actually understands all this code.

Change-Id: Ic81b1c14a1cfb07c6ec4415cc26b2f826adbc8ca
(cherry picked from commit 9d094b9f)
üst c59fba26
...@@ -2142,13 +2142,8 @@ void SbMethod::Broadcast( sal_uIntPtr nHintId ) ...@@ -2142,13 +2142,8 @@ void SbMethod::Broadcast( sal_uIntPtr nHintId )
if( mpPar.Is() ) if( mpPar.Is() )
{ {
// Enregister this as element 0, but don't reset the parent! // Enregister this as element 0, but don't reset the parent!
switch( GetType() ) { if( GetType() != SbxVOID ) {
case SbxEMPTY:
case SbxVOID:
break;
default:
mpPar->PutDirect( pThisCopy, 0 ); mpPar->PutDirect( pThisCopy, 0 );
break;
} }
SetParameters( NULL ); SetParameters( NULL );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment