Set buffer to NULL on dealloc()