]> Dogcows Code - chaz/openbox/blobdiff - src/BaseDisplay.cc
gcc 3 compatibility, converted strstreams to stringstreams
[chaz/openbox] / src / BaseDisplay.cc
index 41097628049ea8e38e61ee36f6a918ea6d3abbc3..f2ac4c7948222d81d3732b15c3901e0c02a99b31 100644 (file)
 #  include <stdio.h>
 #endif // HAVE_STDIO_H
 
-#ifdef    STDC_HEADERS
+#ifdef    HAVE_STDLIB_H
 #  include <stdlib.h>
+#endif // HAVE_STDLIB_H
+
+#ifdef    HAVE_STRING_H
 #  include <string.h>
-#endif // STDC_HEADERS
+#endif // HAVE_STRING_H
 
 #ifdef    HAVE_UNISTD_H
 #  include <sys/types.h>
@@ -401,6 +404,9 @@ BaseDisplay::~BaseDisplay(void) {
     timerList->remove(0);
 
   delete timerList;
+  
+  if (application_name != NULL)
+    delete [] application_name;
 
   XCloseDisplay(display);
 }
This page took 0.024904 seconds and 4 git commands to generate.