Fix double free in createExtrudedMesh, reported by ptitSeb