[nostalgia/core/userland] Fix GLobject to destruct upon reassignment
This commit is contained in:
parent
6bdee3fc1c
commit
c2554cebdb
@ -50,6 +50,7 @@ struct GLobject: public Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GLobject &operator=(GLobject &&o) {
|
GLobject &operator=(GLobject &&o) {
|
||||||
|
this->~GLobject();
|
||||||
id = o.id;
|
id = o.id;
|
||||||
o.id = 0;
|
o.id = 0;
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user