Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: widgets/EAImage.cpp
- Revision:
- 3:24fbf4dbd7e5
- Parent:
- 1:f04bcaea1d60
- Child:
- 6:4fe6f365cbeb
--- a/widgets/EAImage.cpp Sun Mar 28 20:15:15 2010 +0000 +++ b/widgets/EAImage.cpp Wed Mar 31 22:22:21 2010 +0000 @@ -20,6 +20,17 @@ EAImage::~EAImage() { + if (_path != NULL) + { + delete[] _path; + _path = NULL; + } + + if (_palette != NULL) + { + delete[] _palette; + _palette = NULL; + } } bool EAImage::_loadPalette(FILE* fp)