diff options
Diffstat (limited to 'src/Data.cpp')
| -rw-r--r-- | src/Data.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Data.cpp b/src/Data.cpp index 56b2d6b..94767c9 100644 --- a/src/Data.cpp +++ b/src/Data.cpp @@ -40,6 +40,8 @@ Data::Data(const PList::Data& d) : Node(PLIST_DATA) Data& Data::operator=(const PList::Data& b) { + if (this == &b) return *this; + plist_free(_node); _node = plist_copy(b.GetPlist()); return *this; |
