GoogleGit

commit921777f2b0b5adeb766419ffbf6538d10c819912[log][tgz]
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>Thu Mar 15 10:43:22 2012
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>Thu Mar 15 10:43:22 2012
treec7b81951118217e9956a8d0d5744827336d46043
parent21d90b88fd5b2a054e4825e89d104bfe1aadbdde[diff]
Make sure ports are closed when they're no longer used.

It appears to be a common pattern that extensions don't invoke the
responseCallback, and so the port objects leak. Register a callback that
triggers when the responseCallback is finalized to free up these resources.

BUG=114738, 93566
TEST=manual

Review URL: http://codereview.chromium.org/9693048

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126884 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed
tree: c7b81951118217e9956a8d0d5744827336d46043
  1. .DEPS.git
  2. .gitignore
  3. AUTHORS
  4. DEPS
  5. LICENSE
  6. OWNERS
  7. PRESUBMIT.py
  8. WATCHLISTS
  9. ash/
  10. base/
  11. breakpad/
  12. build/
  13. chrome/
  14. chrome_frame/
  15. cloud_print/
  16. codereview.settings
  17. content/
  18. courgette/
  19. crypto/
  20. dbus/
  21. google_update/
  22. gpu/
  23. ipc/
  24. jingle/
  25. media/
  26. native_client_sdk/
  27. net/
  28. ppapi/
  29. printing/
  30. remoting/
  31. sandbox/
  32. sdch/
  33. skia/
  34. sql/
  35. sync/
  36. testing/
  37. third_party/
  38. tools/
  39. ui/
  40. webkit/