fix GblDataWriter memory leak