Fix memory leak in KalGridView