diff options
author | Jerome Glisse <glisse@freedesktop.org> | 2008-10-23 11:28:53 +0200 |
---|---|---|
committer | Jerome Glisse <glisse@freedesktop.org> | 2008-10-23 11:28:53 +0200 |
commit | 084ae9e38812f19751a086eea7ce555761ae5a17 (patch) | |
tree | 0040c04b1a2dcbf719aef15385be76a8f5cdd147 /glx | |
parent | ff60e592f003d8bc45789a1a14e86be22f5242b2 (diff) |
dri2: fail at context creation if driver fail to create it's context
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 207ad063f..c4105e26d 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -303,6 +303,10 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen, (*screen->dri2->createNewContext)(screen->driScreen, config->driConfig, driShare, context); + if (context->driContext == NULL) { + xfree(context); + return NULL; + } return &context->base; } |