avdevice/x11grab: allocate just one Cursor
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Jun 2013 18:20:56 +0000 (20:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Jun 2013 10:00:11 +0000 (12:00 +0200)
commit1ee8fadb811f3b1ef370c7d6c7bf62088f1cc954
tree00cc79fe8c41112c530d1646cecd33b27980b9b1
parent98abe16522be05096800dbf8e2ed4f4d8c9118c5
avdevice/x11grab: allocate just one Cursor

Fixes resource leak and Ticket2450

Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/x11grab.c