diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/script.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/script/script.h b/src/script/script.h index 95a5999a13..5f88e71012 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -642,8 +642,9 @@ public: void clear() { - // The default std::vector::clear() does not release memory. - CScriptBase().swap(*this); + // The default prevector::clear() does not release memory + CScriptBase::clear(); + shrink_to_fit(); } }; |