add ownend and delete dtor

pull/6529/head
thinkerou 9 years ago
parent c59eef024f
commit f7b01874fd
  1. 1
      src/php/ext/grpc/call.c
  2. 1
      src/php/ext/grpc/call_credentials.c
  3. 1
      src/php/ext/grpc/channel.c
  4. 1
      src/php/ext/grpc/channel_credentials.c
  5. 1
      src/php/ext/grpc/server.c
  6. 1
      src/php/ext/grpc/server_credentials.c
  7. 6
      src/php/ext/grpc/timeval.c

@ -65,7 +65,6 @@ void free_wrapped_grpc_call(void *object TSRMLS_DC) {
if (call->owned && call->wrapped != NULL) {
grpc_call_destroy(call->wrapped);
}
zend_object_std_dtor(&call->std TSRMLS_CC);
efree(call);
}

@ -60,7 +60,6 @@ void free_wrapped_grpc_call_credentials(void *object TSRMLS_DC) {
if (creds->wrapped != NULL) {
grpc_call_credentials_release(creds->wrapped);
}
zend_object_std_dtor(&creds->std TSRMLS_CC);
efree(creds);
}

@ -64,7 +64,6 @@ void free_wrapped_grpc_channel(void *object TSRMLS_DC) {
if (channel->wrapped != NULL) {
grpc_channel_destroy(channel->wrapped);
}
zend_object_std_dtor(&channel->std TSRMLS_CC);
efree(channel);
}

@ -59,7 +59,6 @@ void free_wrapped_grpc_channel_credentials(void *object TSRMLS_DC) {
if (creds->wrapped != NULL) {
grpc_channel_credentials_release(creds->wrapped);
}
zend_object_std_dtor(&creds->std TSRMLS_CC);
efree(creds);
}

@ -69,7 +69,6 @@ void free_wrapped_grpc_server(void *object TSRMLS_DC) {
gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
grpc_server_destroy(server->wrapped);
}
zend_object_std_dtor(&server->std TSRMLS_CC);
efree(server);
}

@ -58,7 +58,6 @@ void free_wrapped_grpc_server_credentials(void *object TSRMLS_DC) {
if (creds->wrapped != NULL) {
grpc_server_credentials_release(creds->wrapped);
}
zend_object_std_dtor(&creds->std TSRMLS_CC);
efree(creds);
}

@ -53,11 +53,7 @@
zend_class_entry *grpc_ce_timeval;
/* Frees and destroys an instance of wrapped_grpc_call */
void free_wrapped_grpc_timeval(void *object TSRMLS_DC) {
wrapped_grpc_timeval *timeval = (wrapped_grpc_timeval *)object;
zend_object_std_dtor(&timeval->std TSRMLS_CC);
efree(object);
}
void free_wrapped_grpc_timeval(void *object TSRMLS_DC) { efree(object); }
/* Initializes an instance of wrapped_grpc_timeval to be associated with an
* object of a class specified by class_type */

Loading…
Cancel
Save