Moved cursor object freeing to better place.
1 file changed