Fix memleak when Icon move ctor is used
This commit is contained in:
parent
628d3b9ab6
commit
44c4633684
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ public:
|
||||||
}
|
}
|
||||||
Icon(const Icon &other) : _data(other._data) {
|
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) {
|
Icon &operator=(const Icon &other) {
|
||||||
Expects(!_owner);
|
Expects(!_owner);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue