[nostalgia/core/userland] Fix GLobject to destruct upon reassignment

This commit is contained in:
Gary Talent 2021-03-20 15:50:35 -05:00
parent 6bdee3fc1c
commit c2554cebdb

View File

@ -50,6 +50,7 @@ struct GLobject: public Base {
}
GLobject &operator=(GLobject &&o) {
this->~GLobject();
id = o.id;
o.id = 0;
return *this;