From c2554cebdb6090a2085796559e281749227c693f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 20 Mar 2021 15:50:35 -0500 Subject: [PATCH] [nostalgia/core/userland] Fix GLobject to destruct upon reassignment --- src/nostalgia/core/userland/glutils.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nostalgia/core/userland/glutils.hpp b/src/nostalgia/core/userland/glutils.hpp index 3b2d19232..aca6d2244 100644 --- a/src/nostalgia/core/userland/glutils.hpp +++ b/src/nostalgia/core/userland/glutils.hpp @@ -50,6 +50,7 @@ struct GLobject: public Base { } GLobject &operator=(GLobject &&o) { + this->~GLobject(); id = o.id; o.id = 0; return *this;