From b9c849fb2feeba8a24c1b5cb6de8a564d1c2150c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 27 Nov 2016 11:16:59 +0100 Subject: Fix memory leak in X11 backend. --- plugingui/nativewindow_x11.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugingui') diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc index 5d239ea..8a86c80 100644 --- a/plugingui/nativewindow_x11.cc +++ b/plugingui/nativewindow_x11.cc @@ -100,6 +100,13 @@ NativeWindowX11::~NativeWindowX11() return; } + if(buffer) + { + XDestroyImage(buffer); + } + + XFreeGC(display, gc); + XDestroyWindow(display, xwindow); XCloseDisplay(display); } -- cgit v1.2.3