| Index: net/url_request/sdch_dictionary_fetcher.h
|
| diff --git a/net/url_request/sdch_dictionary_fetcher.h b/net/url_request/sdch_dictionary_fetcher.h
|
| index e4b7c4fe51901d83b473c4331b8fcce9562be4fe..ea59582d80b8ac079729abd90de93d69d8f4308e 100644
|
| --- a/net/url_request/sdch_dictionary_fetcher.h
|
| +++ b/net/url_request/sdch_dictionary_fetcher.h
|
| @@ -112,8 +112,10 @@ class NET_EXPORT SdchDictionaryFetcher : public URLRequest::Delegate,
|
| scoped_refptr<IOBuffer> buffer_;
|
| OnDictionaryFetchedCallback current_callback_;
|
|
|
| - // The currently accumulating dictionary.
|
| - std::string dictionary_;
|
| + // The currently accumulating dictionary. Stored as a unique_ptr so all memory
|
| + // it consumes can be easily freed, as it gets quite big, and
|
| + // std::string::clear() may not free memory.
|
| + std::unique_ptr<std::string> dictionary_;
|
|
|
| // Store the URLRequestContext associated with the owning SdchManager for
|
| // use while fetching.
|
|
|