Skip to content
Snippets Groups Projects
Commit f1ce470b authored by Muxi Yan's avatar Muxi Yan
Browse files

Release slice no longer owned

parent 3c383805
No related branches found
No related tags found
No related merge requests found
...@@ -182,12 +182,15 @@ static grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) { ...@@ -182,12 +182,15 @@ static grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) {
- (grpc_call *)unmanagedCallWithPath:(NSString *)path - (grpc_call *)unmanagedCallWithPath:(NSString *)path
completionQueue:(GRPCCompletionQueue *)queue { completionQueue:(GRPCCompletionQueue *)queue {
return grpc_channel_create_call(_unmanagedChannel, grpc_slice path_slice = grpc_slice_from_copied_string(path.UTF8String);
grpc_call *call = grpc_channel_create_call(_unmanagedChannel,
NULL, GRPC_PROPAGATE_DEFAULTS, NULL, GRPC_PROPAGATE_DEFAULTS,
queue.unmanagedQueue, queue.unmanagedQueue,
grpc_slice_from_copied_string(path.UTF8String), path_slice,
NULL, // Passing NULL for host NULL, // Passing NULL for host
gpr_inf_future(GPR_CLOCK_REALTIME), NULL); gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
grpc_slice_unref(path_slice);
return call;
} }
@end @end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment