diff options
author | Siavash Eliasi <[email protected]> | 2014-02-10 13:28:16 +0330 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2014-02-28 15:57:15 -0800 |
commit | 2a399d9eae08be0a1b8fa2394a02aba54ede6b03 (patch) | |
tree | d860711dadf76c496a795db27629f5433460b0c6 /src/glx/apple | |
parent | f4416323fcbfdd8dec84e707b664ac1044dc14d3 (diff) |
glx/apple: Fixed glx context memory leak in case of failure.
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Jeremy Huddleston Sequoia: <[email protected]>
Diffstat (limited to 'src/glx/apple')
-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 0bb25b42575..8a6ded28aa2 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; } |