From 85aee534620d7628749f0df7c6a29e3bcfa7a790 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 2 Oct 2019 06:18:15 +0200 Subject: [PATCH] More debugging output in Animation.cpp --- src/Animation.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Animation.cpp b/src/Animation.cpp index cf4ee3e..5a54722 100644 --- a/src/Animation.cpp +++ b/src/Animation.cpp @@ -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() {