pull/20962/head
Esun Kim 5 years ago
parent 3d3577e28d
commit d287745c77
  1. 4
      src/core/lib/gprpp/ref_counted.h
  2. 2
      src/objective-c/tests/CronetTests/CoreCronetEnd2EndTests.mm

@ -267,12 +267,12 @@ class RefCounted : public Impl {
// friend of this class. // friend of this class.
void Unref() { void Unref() {
if (GPR_UNLIKELY(refs_.Unref())) { if (GPR_UNLIKELY(refs_.Unref())) {
delete this; delete static_cast<Child*>(this);
} }
} }
void Unref(const DebugLocation& location, const char* reason) { void Unref(const DebugLocation& location, const char* reason) {
if (GPR_UNLIKELY(refs_.Unref(location, reason))) { if (GPR_UNLIKELY(refs_.Unref(location, reason))) {
delete this; delete static_cast<Child*>(this);
} }
} }

@ -103,7 +103,7 @@ static void chttp2_init_server_secure_fullstack(grpc_end2end_test_fixture *f,
static void chttp2_tear_down_secure_fullstack(grpc_end2end_test_fixture *f) { static void chttp2_tear_down_secure_fullstack(grpc_end2end_test_fixture *f) {
fullstack_secure_fixture_data *ffd = (fullstack_secure_fixture_data *)f->fixture_data; fullstack_secure_fixture_data *ffd = (fullstack_secure_fixture_data *)f->fixture_data;
grpc_core::Delete(ffd); delete ffd;
} }
static void cronet_init_client_simple_ssl_secure_fullstack(grpc_end2end_test_fixture *f, static void cronet_init_client_simple_ssl_secure_fullstack(grpc_end2end_test_fixture *f,

Loading…
Cancel
Save