Commit 69330ad0 authored by erikchen's avatar erikchen Committed by Commit Bot

Fix potential memory leak in WifiServiceMac.

The Windows counterpart to WifiServiceMac calls UnIninitialize in the
destructor. It appears that the Mac version is failing to call Uninitialize,
which may be the source of a large notification-related memory leak.

Bug: 904540
Change-Id: I718aa58d69f4f39450bbb78f05375750ce4d6735
Reviewed-on: https://chromium-review.googlesource.com/c/1342088Reviewed-by: default avatarMisha Efimov <mef@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612711}
parent 9465c47f
...@@ -159,6 +159,7 @@ WiFiServiceMac::WiFiServiceMac() : wlan_observer_(nil) { ...@@ -159,6 +159,7 @@ WiFiServiceMac::WiFiServiceMac() : wlan_observer_(nil) {
} }
WiFiServiceMac::~WiFiServiceMac() { WiFiServiceMac::~WiFiServiceMac() {
UnInitialize();
} }
void WiFiServiceMac::Initialize( void WiFiServiceMac::Initialize(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment