From 2fc6c3a39b6be6f8a6b9a9dd1d030b46d7ea71bf Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 20 Sep 2013 03:36:02 +0000 Subject: Fixes STR #2985: prevent memory leaks with XGetWindowProperty() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/list_visuals.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'test/list_visuals.cxx') diff --git a/test/list_visuals.cxx b/test/list_visuals.cxx index 3f653300b..a9ffdfbfe 100644 --- a/test/list_visuals.cxx +++ b/test/list_visuals.cxx @@ -213,6 +213,7 @@ void list_visuals() { putchar('\n'); } + if ( overlayInfo ) { XFree(overlayInfo); overlayInfo = 0; } } #endif -- cgit v1.2.3