diff options
author | Siavash Eliasi <siavashserver@gmail.com> | 2014-02-10 13:28:16 +0330 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-02-28 15:57:15 -0800 |
commit | 2a399d9eae08be0a1b8fa2394a02aba54ede6b03 (patch) | |
tree | d860711dadf76c496a795db27629f5433460b0c6 /src | |
parent | f4416323fcbfdd8dec84e707b664ac1044dc14d3 (diff) | |
download | external_mesa3d-2a399d9eae08be0a1b8fa2394a02aba54ede6b03.zip external_mesa3d-2a399d9eae08be0a1b8fa2394a02aba54ede6b03.tar.gz external_mesa3d-2a399d9eae08be0a1b8fa2394a02aba54ede6b03.tar.bz2 |
glx/apple: Fixed glx context memory leak in case of failure.
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Jeremy Huddleston Sequoia: <jeremyhu@apple.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/apple/apple_glx_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/apple/apple_glx_context.c b/src/glx/apple/apple_glx_context.c index 0bb25b4..8a6ded2 100644 --- a/src/glx/apple/apple_glx_context.c +++ b/src/glx/apple/apple_glx_context.c @@ -142,6 +142,7 @@ apple_glx_create_context(void **ptr, Display * dpy, int screen, if (sharedac && !is_context_valid(sharedac)) { *errorptr = GLXBadContext; *x11errorptr = false; + free(ac); return true; } |