summaryrefslogtreecommitdiffstats
path: root/raul/Atom.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Atom.hpp')
-rw-r--r--raul/Atom.hpp3
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;