diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-04-08 10:22:11 -0400 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2016-04-11 16:13:44 +0900 |
commit | bd4c72c8625996d842824ce4963f2d759fe2954a (patch) | |
tree | fac6c8efc5656874c25932f6c20b39269e6438d8 /src/radeon_dri3.c | |
parent | 3300ea01fbdf770dc084eebbf2854fba35144220 (diff) |
dri3: Return NULL from radeon_dri3_pixmap_from_fd if calloc fails.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_dri3.c')
-rw-r--r-- | src/radeon_dri3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c index 43a073be..c5670246 100644 --- a/src/radeon_dri3.c +++ b/src/radeon_dri3.c @@ -144,6 +144,7 @@ static PixmapPtr radeon_dri3_pixmap_from_fd(ScreenPtr screen, } screen->DestroyPixmap(pixmap); + return NULL; } } #endif |