summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ScreenDump.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ScreenDump.cxx b/src/ScreenDump.cxx
index d238535..c1643d7 100644
--- a/src/ScreenDump.cxx
+++ b/src/ScreenDump.cxx
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-
#include <FL/Fl.H>
#include <FL/x.H>
#include <FL/fl_draw.H>
@@ -23,7 +21,8 @@ ScreenDump::ScreenDump(GipfelWidget *gipf) {
}
ScreenDump::~ScreenDump() {
- free(rgb);
+ if (rgb)
+ delete[] rgb;
}
int