Fixed crash on 2.1 SDK where it was freeing memory twice