aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/menu/software_mouse_pointer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/menu/software_mouse_pointer.cpp b/src/menu/software_mouse_pointer.cpp
index 18de8de3..32609e13 100644
--- a/src/menu/software_mouse_pointer.cpp
+++ b/src/menu/software_mouse_pointer.cpp
@@ -83,6 +83,11 @@ namespace usdx
delete texture_normal;
texture_normal = NULL;
}
+
+ if (texture_pressed != NULL) {
+ delete texture_pressed;
+ texture_pressed = NULL;
+ }
}
void SoftwareMousePointer::draw(void)