From 560206eb534ac789adc9c7fc17437522334ac713 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 26 Mar 2009 23:18:44 +0100 Subject: delete[] rgb buffer --- src/ScreenDump.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 - #include #include #include @@ -23,7 +21,8 @@ ScreenDump::ScreenDump(GipfelWidget *gipf) { } ScreenDump::~ScreenDump() { - free(rgb); + if (rgb) + delete[] rgb; } int -- cgit v1.2.3