diff options
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/nativewindow_x11.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |