diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index fe526a149a7e..491438cd04c3 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -3598,6 +3598,9 @@ void ScInterpreter::ScMacro() } } + // prevent cycles from leaking memory + refPar->Clear(); + if (bVolatileMacro && meVolatileType == NOT_VOLATILE) meVolatileType = VOLATILE_MACRO; #endif