Fix memleak when Icon move ctor is used

This commit is contained in:
Maks Naumov 2020-02-08 22:26:19 +02:00 committed by John Preston
parent 628d3b9ab6
commit 44c4633684

View file

@ -153,7 +153,7 @@ public:
}
Icon(const Icon &other) : _data(other._data) {
}
Icon(Icon &&other) : _data(base::take(other._data)), _owner(base::take(_owner)) {
Icon(Icon &&other) : _data(base::take(other._data)), _owner(base::take(other._owner)) {
}
Icon &operator=(const Icon &other) {
Expects(!_owner);