diff options
Diffstat (limited to 'raul/Atom.hpp')
-rw-r--r-- | raul/Atom.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/raul/Atom.hpp b/raul/Atom.hpp index 8717964..c657fbf 100644 --- a/raul/Atom.hpp +++ b/raul/Atom.hpp @@ -59,6 +59,9 @@ public: } Atom& operator=(const Atom& other) { + if (&other == this) { + return *this; + } dealloc(); _size = other._size; _type = other._type; |