mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Don't forget to destroy the previous value when assigning a new one
This commit is contained in:
parent
f09ea8bf6f
commit
d5823f2b42
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ public:
|
|||
}
|
||||
Value &operator=(Value &&other)
|
||||
{
|
||||
if (this == &other)
|
||||
return *this;
|
||||
cbindgen_private::sixtyfps_interpreter_value_destructor(&inner);
|
||||
inner = other.inner;
|
||||
cbindgen_private::sixtyfps_interpreter_value_new(&other.inner);
|
||||
return *this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue