More debugging output in Animation.cpp

This commit is contained in:
Fabian Schlenz 2019-10-02 06:18:15 +02:00
parent f42b5e1034
commit 85aee53462
1 changed files with 10 additions and 8 deletions

View File

@ -207,27 +207,29 @@ void Animation::setSingleFrame(uint8_t frame) {
Animation::~Animation() {
for (int i=0; i<_color_count; i++) delete _colors[i];
LOGln("Deleting _colors...");
LOGln("Animation * Deleting _colors...");
if (_colors) delete [] _colors;
LOGln("Deleting fgColor...");
LOGln("Animation * Deleting fgColor...");
if (fgColor != NULL) delete fgColor;
LOGln("Deleting bgColor...");
LOGln("Animation * Deleting bgColor...");
if (bgColor != NULL) delete bgColor;
LOGln("Deleting _frame_data_lengths...");
LOGln("Animation * Deleting _frame_data_lengths...");
if (_frame_data_lengths) delete [] _frame_data_lengths;
LOGln("Deleting _frame_times...");
LOGln("Animation * Deleting _frame_times...");
if (_frame_times) delete [] _frame_times;
for (int i=0; i<_frame_count; i++) {
delete [] _frame_data[i];
}
LOGln("Deleting _frame_data...");
LOGln("Animation * Deleting _frame_data...");
if (_frame_data) delete [] _frame_data;
LOGln("Deleteion done.");
LOGln("Animation * Deletion done.");
}
void Animation::draw() {