| commit | 7151ed0c74599db4d9b1871416814b9a05214ba6 | [log] [tgz] |
|---|---|---|
| author | Selim Gurun <sgurun@google.com> | Fri Aug 31 10:53:04 2012 -0700 |
| committer | Selim Gurun <sgurun@google.com> | Fri Aug 31 10:53:04 2012 -0700 |
| tree | 2e8dd325f0a4b1e7ac54879c421a9b05662bd19d | |
| parent | 3f9aace3c8671247a9b06117658d44282871ba89 [diff] |
Fix potential corruption/leak in cookiejar. The flush() method of the cookie jar can be accessed from different threads. This method (eventually) creates a NewRunnableTask and a callback on FlushSemaphore object. Therefore FlushSemaphore should inherit from a ThreadSafe ref counter rather than a simple base ref counter. Change-Id: Ie6914fba9b1554081c4b3b5992661af066e23653