diff --git a/src/Corrade/Containers/String.cpp b/src/Corrade/Containers/String.cpp index f78de84c7..e8e0319e9 100644 --- a/src/Corrade/Containers/String.cpp +++ b/src/Corrade/Containers/String.cpp @@ -189,6 +189,8 @@ String::String(String&& other) noexcept { } String& String::operator=(const String& other) { + if(other == *this) return *this; + destruct(); const std::pair data = other.dataInternal();