aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/lb_policy
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2018-03-30 13:18:08 -0700
committerGravatar Mark D. Roth <roth@google.com>2018-03-30 13:18:08 -0700
commitd536dba4d3234ba28066a31f7a092ce9daa89ec4 (patch)
tree437a355e65d188239c32fa16a90b3d75a1ad1136 /src/core/ext/filters/client_channel/lb_policy
parent7f25d201c3b7239c688445e2e3498a89ef28cea3 (diff)
Work-around for ref-counted subclass deletion address problem.
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy')
-rw-r--r--src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc
index 0b2a30818e..097ff112f9 100644
--- a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc
+++ b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc
@@ -189,6 +189,10 @@ class GrpcLb : public LoadBalancingPolicy {
bool seen_initial_response() const { return seen_initial_response_; }
private:
+ // So Delete() can access our private dtor.
+ template <typename T>
+ friend void grpc_core::Delete(T*);
+
~BalancerCallState();
GrpcLb* grpclb_policy() const {