From 44c46336847a8d8ece3fb00301875af58ca69bf4 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Sat, 8 Feb 2020 22:26:19 +0200 Subject: [PATCH] Fix memleak when Icon move ctor is used --- ui/style/style_core_icon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/style/style_core_icon.h b/ui/style/style_core_icon.h index 045d12ad..f5c3f59c 100644 --- a/ui/style/style_core_icon.h +++ b/ui/style/style_core_icon.h @@ -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);