Skip to content

Commit

Permalink
Fix memleak when Icon move ctor is used
Browse files Browse the repository at this point in the history
  • Loading branch information
maksqwe authored and john-preston committed Feb 10, 2020
1 parent 628d3b9 commit 44c4633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/style/style_core_icon.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Icon {
}
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);
Expand Down

0 comments on commit 44c4633

Please sign in to comment.