Fix Caret Cursor Memory Leak

The caret cursor was using more memory than needed.