summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-16 07:16:12 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-16 07:16:12 -0600
commite891faed75967e2c257385212f788a80a64ffc83 (patch)
tree7d41ec372a196d606189d832a5e533544de52605 /NxWidgets/nxwm/include
parentcc6ba5990a380e1bbec4ab26aff3a3e9f65f2470 (diff)
downloadnuttx-e891faed75967e2c257385212f788a80a64ffc83.tar.gz
nuttx-e891faed75967e2c257385212f788a80a64ffc83.tar.bz2
nuttx-e891faed75967e2c257385212f788a80a64ffc83.zip
NxWM::CMediaPlayer: Fix memory leak
Diffstat (limited to 'NxWidgets/nxwm/include')
-rw-r--r--NxWidgets/nxwm/include/cmediaplayer.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/NxWidgets/nxwm/include/cmediaplayer.hxx b/NxWidgets/nxwm/include/cmediaplayer.hxx
index f0888b57f..6d803b537 100644
--- a/NxWidgets/nxwm/include/cmediaplayer.hxx
+++ b/NxWidgets/nxwm/include/cmediaplayer.hxx
@@ -138,6 +138,18 @@ namespace NxWM
NXWidgets::CGlyphSliderHorizontal *m_volume; /**< Volume control */
/**
+ * Bitmaps
+ *
+ * These are retained only so that they can be released when the media
+ * is closed player
+ */
+
+ NXWidgets::CRlePaletteBitmap *m_playBitmap; /**< Bitmap for the play control */
+ NXWidgets::CRlePaletteBitmap *m_pauseBitmap; /**< Bitmap for the pause control */
+ NXWidgets::CRlePaletteBitmap *m_rewindBitmap; /**< Bitmap for the rewind control */
+ NXWidgets::CRlePaletteBitmap *m_fforwardBitmap; /**< Bitmap for the fast forward control */
+
+ /**
* Calculator geometry. This stuff does not really have to be retained
* in memory. If you are pinched for memory, get rid of these.
*/