summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-17 09:05:23 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-17 09:05:23 -0600
commit35d84a9be37915f4c9e13b6ae69e84ef632608e4 (patch)
treed6e7599dd015167528b2d8b086804f8534194d08 /libdimension
parenta932d4f46c2fadd6c750d844846fb9ba4baf45e0 (diff)
downloaddimension-35d84a9be37915f4c9e13b6ae69e84ef632608e4.tar.xz
Fix leak in failure path in GL test.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/tests/gl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdimension/tests/gl.c b/libdimension/tests/gl.c
index 8d93cf5..c71822c 100644
--- a/libdimension/tests/gl.c
+++ b/libdimension/tests/gl.c
@@ -43,6 +43,7 @@ main(void)
dmnsn_display *display = dmnsn_new_display(canvas);
if (!display) {
fprintf(stderr, "--- WARNING: Couldn't initialize X or glX! ---\n");
+ dmnsn_delete_canvas(canvas);
return EXIT_SUCCESS;
}