Descriptionlinux_aura: Fix cursor memeory leak, which was redding the lsan bot.
views::corewm::CursorManager was no longer owned by anything, nor did it
register with the base::AtExitManager. This refcounts the number of DNWAs
and frees the shared CursorManager when the last one is destroyed. (We
can't just use a base::LazyInstance<> since that doesn't have any useful
guarantees on destruction ordering; we need to destroy CursorManager
before we tear down the X11 connection.)
BUG=334333
R=tdanderson
TBR=sadrul
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245090
Patch Set 1 #
Total comments: 1
Patch Set 2 : Change to manual ref counting. #Patch Set 3 : Tear down NCM during OnDesktopWindowTreeHostDestroyed instead of dtor. #
Total comments: 1
Patch Set 4 : +comment #
Total comments: 1
Messages
Total messages: 11 (0 generated)
|