diff options
author | Richard Grenville <[email protected]> | 2014-08-03 19:40:40 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2014-08-03 19:40:40 +0800 |
commit | ebab3dc5061e58da34eed227e8f98965bdd1bc30 (patch) | |
tree | 61e81f85f8af76d7a982d183660200e2e036e6c2 /common.h | |
parent | 66b420aa62d28af6f6e7b064f58db446829b4f6a (diff) | |
download | tdebase-ebab3dc5061e58da34eed227e8f98965bdd1bc30.tar.gz tdebase-ebab3dc5061e58da34eed227e8f98965bdd1bc30.zip |
Bug fix: Fix X pixmap leakage in shadow_paint
- Fix X pixmap leakage in shadow_paint.
- Add the skeleton of a X resource leakage checker.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -145,8 +145,6 @@ #define GLX_BACK_BUFFER_AGE_EXT 0x20F4 #endif -#endif - // === Macros === #define MSTR_(s) #s @@ -186,6 +184,11 @@ /// Macro used for shortening some debugging code. #define CASESTRRET(s) case s: return #s +// X resource checker +#ifdef DEBUG_XRC +#include "xrescheck.h" +#endif + // === Constants === #if !(COMPOSITE_MAJOR > 0 || COMPOSITE_MINOR >= 2) #error libXcomposite version unsupported @@ -2514,3 +2517,4 @@ hexdump(const char *data, int len) { fflush(stdout); } +#endif |