diff options
Diffstat (limited to 'src/script/script.h')
-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 23706b9826..bbb37f049e 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -648,8 +648,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(); } }; |