Fixed delete methods freeing non-allocated ptrs