aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-23 12:52:17 +0200
committerDavid Robillard <d@drobilla.net>2019-07-23 20:28:56 +0200
commitb47bfc5f1fba8d3e5295e11f1add8665c423cc4d (patch)
tree3c274e9a6bb1a59fb927f904b947365b15a0c4c4
parent1fef5e07611cc0a3bfeeec528a6b018b9e9805b9 (diff)
X11: Fix memory leak
-rw-r--r--pugl/pugl_x11_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/pugl_x11_gl.c b/pugl/pugl_x11_gl.c
index 8f8e4fd..0ada53f 100644
--- a/pugl/pugl_x11_gl.c
+++ b/pugl/pugl_x11_gl.c
@@ -94,6 +94,8 @@ puglX11GlConfigure(PuglView* view)
puglX11GlGetAttrib(display, fbc[0], GLX_DOUBLEBUFFER),
puglX11GlGetAttrib(display, fbc[0], GLX_SAMPLES));
+ XFree(fbc);
+
return 0;
}