DescriptionAll classes that directly derive from net::URLRequestContextGetter should have "protected"
virtual destructors, not "public".
By having a public destructor, it becomes possible to stack
allocate the derived class. Stack allocating a RCTS is a
dangerous behaviour, since there may still be a caller who
holds a reference when the object goes out of scope.
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131072
Patch Set 1 #Patch Set 2 : More unsafe patterns #Patch Set 3 : Two private dtor -> protected dtor #Patch Set 4 : ToT #
Messages
Total messages: 10 (0 generated)
|