diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-03-29 17:38:44 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-03-29 17:38:44 +0100 |
commit | 9b14e0c311ca5f0ab7017e058fc9a34b0e5e04b2 (patch) | |
tree | 80ac8abe46777301ca6d87ae458745aae1907a6d /test/filecomp.c | |
parent | 93ce9c7d4f797f38e1799b68f5da77358da27a31 (diff) | |
download | libxkbcommon-9b14e0c311ca5f0ab7017e058fc9a34b0e5e04b2.tar.gz libxkbcommon-9b14e0c311ca5f0ab7017e058fc9a34b0e5e04b2.tar.bz2 libxkbcommon-9b14e0c311ca5f0ab7017e058fc9a34b0e5e04b2.zip |
Tests: Release context on failure to build keymap
No practical effect since they exit(1) regardless, but it keeps valgrind
happy.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'test/filecomp.c')
-rw-r--r-- | test/filecomp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/filecomp.c b/test/filecomp.c index 3ba1b57..26bfaa6 100644 --- a/test/filecomp.c +++ b/test/filecomp.c @@ -85,6 +85,7 @@ int main(int argc, char *argv[]) if (!xkb) { fprintf(stderr, "Failed to compile keymap\n"); + xkb_context_unref(context); exit(1); } |