From 7608a625d216e1bf19b666ea9d2294b40ee3be96 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Thu, 16 Aug 2007 15:36:15 +0300 Subject: [PATCH] Storage of XGetVisualInfo() needs to be free()d --- src/screen.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/screen.c b/src/screen.c index 5fb4bdc..e97f0cc 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1642,6 +1642,7 @@ addScreen (CompDisplay *display, { compLogMessage (display, "core", CompLogLevelFatal, "Couldn't allocate color"); + XFree(visinfo); return FALSE; } @@ -1650,6 +1651,7 @@ addScreen (CompDisplay *display, { compLogMessage (display, "core", CompLogLevelFatal, "Couldn't create bitmap"); + XFree(visinfo); return FALSE; } @@ -1659,6 +1661,7 @@ addScreen (CompDisplay *display, { compLogMessage (display, "core", CompLogLevelFatal, "Couldn't create invisible cursor"); + XFree(visinfo); return FALSE; } @@ -1670,6 +1673,7 @@ addScreen (CompDisplay *display, { compLogMessage (display, "core", CompLogLevelFatal, "Root visual is not a GL visual"); + XFree(visinfo); return FALSE; } @@ -1678,6 +1682,7 @@ addScreen (CompDisplay *display, { compLogMessage (display, "core", CompLogLevelFatal, "Root visual is not a double buffered GL visual"); + XFree(visinfo); return FALSE; } -- 1.5.2.4