aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-12-25 21:01:41 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:50 +0100
commit07ede1c312c050103ae23ff2f04e86fbc97b087f (patch)
tree9e3e6a9091fc4b79b9d4cf44a48c94469bf43e82 /src/menu
parentc731a59c47832590fc87a9b535ce5309cb11ffe7 (diff)
downloadusdx-07ede1c312c050103ae23ff2f04e86fbc97b087f.tar.gz
usdx-07ede1c312c050103ae23ff2f04e86fbc97b087f.tar.xz
usdx-07ede1c312c050103ae23ff2f04e86fbc97b087f.zip
menu/software_mouse_pointer: memory cleanup
Diffstat (limited to 'src/menu')
-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)