X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FBaseDisplay.cc;h=f2ac4c7948222d81d3732b15c3901e0c02a99b31;hb=89563281384c34886fb12b169d1bdf8d293f0b48;hp=41097628049ea8e38e61ee36f6a918ea6d3abbc3;hpb=44e3582d5e08556c7b1136cfd9a49546cf5fcae0;p=chaz%2Fopenbox diff --git a/src/BaseDisplay.cc b/src/BaseDisplay.cc index 41097628..f2ac4c79 100644 --- a/src/BaseDisplay.cc +++ b/src/BaseDisplay.cc @@ -48,10 +48,13 @@ # include #endif // HAVE_STDIO_H -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include +#endif // HAVE_STDLIB_H + +#ifdef HAVE_STRING_H # include -#endif // STDC_HEADERS +#endif // HAVE_STRING_H #ifdef HAVE_UNISTD_H # include @@ -401,6 +404,9 @@ BaseDisplay::~BaseDisplay(void) { timerList->remove(0); delete timerList; + + if (application_name != NULL) + delete [] application_name; XCloseDisplay(display); }