From ebab3dc5061e58da34eed227e8f98965bdd1bc30 Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Sun, 3 Aug 2014 19:40:40 +0800 Subject: 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. --- common.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index c1bae4223..066284e77 100644 --- a/common.h +++ b/common.h @@ -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 -- cgit v1.2.3