diff options
author | Dave Airlie <airlied@redhat.com> | 2018-09-12 11:12:51 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-09-12 12:26:48 +1000 |
commit | c4591ea17110b5c318a5ef4b0f17a4eea306ea71 (patch) | |
tree | 71d0800aa1ed965edf7d7a4e733110fd32f5737a /mi | |
parent | 758393951233d1b2520cf4cefd33ec4288a3880a (diff) |
mibltblt: free prgnSrcClip on error path.
Pointed out by coverity.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mibitblt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mi/mibitblt.c b/mi/mibitblt.c index 2de5bf8fd..43d9bd917 100644 --- a/mi/mibitblt.c +++ b/mi/mibitblt.c @@ -141,6 +141,8 @@ miCopyArea(DrawablePtr pSrcDrawable, free(ordering); free(pwidthFirst); free(pptFirst); + if (realSrcClip) + RegionDestroy(prgnSrcClip); return NULL; } |