Fix memory leak caused by DataLoader dtor

Fix memory leak caused by DataLoader dtor, because the actual destructor
is not called.