-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some text entry leaks on Darwin. (#21286)
We can get OnNewInterface twice for the same interface. When the happens we replace the old InterfaceInfo with a new one in the map. Because our cleanup was from ~ResolveContext, that meant we leaked any allocated memory the InterfaceInfo was holding on to. The fix is to make InterfaceInfo manage its own memory and make sure we transfer the ownership properly via move constructors when inserting into the map.
- Loading branch information
1 parent
d92d172
commit 5649017
Showing
2 changed files
with
38 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters