glamor: Fix memory leak in _glamor_copy_n_to_n()
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 23 Apr 2014 09:54:42 +0000 (18:54 +0900)
committerEric Anholt <eric@anholt.net>
Wed, 23 Apr 2014 17:38:30 +0000 (10:38 -0700)
commit21e0e373858bd7f3458172ebd465397e33b90162
treecb6cbc7139ae53292bb1a573200431141af7a3c7
parent4e9aabb6fc15d8052934f20c6a07801c197ec36a
glamor: Fix memory leak in _glamor_copy_n_to_n()

It would leak the memory allocated for the region rects in some cases.
Found with valgrind.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
glamor/glamor_copyarea.c