From: Scott Moynes Date: Sat, 20 Apr 2002 15:26:41 +0000 (+0000) Subject: fixed memory leak of application_name X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=bed4d7c1e55947b6c69480e33abc63c280c62471;p=chaz%2Fopenbox fixed memory leak of application_name --- diff --git a/src/BaseDisplay.cc b/src/BaseDisplay.cc index b9143b77..f2ac4c79 100644 --- a/src/BaseDisplay.cc +++ b/src/BaseDisplay.cc @@ -404,6 +404,9 @@ BaseDisplay::~BaseDisplay(void) { timerList->remove(0); delete timerList; + + if (application_name != NULL) + delete [] application_name; XCloseDisplay(display); }