diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-12-25 21:01:41 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:50 +0100 |
commit | 07ede1c312c050103ae23ff2f04e86fbc97b087f (patch) | |
tree | 9e3e6a9091fc4b79b9d4cf44a48c94469bf43e82 | |
parent | c731a59c47832590fc87a9b535ce5309cb11ffe7 (diff) | |
download | usdx-07ede1c312c050103ae23ff2f04e86fbc97b087f.tar.gz usdx-07ede1c312c050103ae23ff2f04e86fbc97b087f.tar.xz usdx-07ede1c312c050103ae23ff2f04e86fbc97b087f.zip |
menu/software_mouse_pointer: memory cleanup
-rw-r--r-- | src/menu/software_mouse_pointer.cpp | 5 |
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) |