Commit 65453a44 authored by Joe Downing's avatar Joe Downing Committed by Commit Bot

[MacOS Host] Fixing a memory leak in the alert dialog

Follow-up CL fixing a leak identified post check-in.

Bug: 902041
Change-Id: Ic900c107f13185fa8c823163b2278990ed543ff2
Reviewed-on: https://chromium-review.googlesource.com/c/1352030Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Commit-Queue: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611777}
parent 75f24fdf
......@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/mac/scoped_nsobject.h"
#include "base/memory/scoped_refptr.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/sys_string_conversions.h"
......@@ -22,7 +23,7 @@ constexpr int kMinDialogWidthPx = 650;
constexpr NSString* kServiceScriptName = @"org.chromium.chromoting.me2me.sh";
void ShowPermissionDialog() {
NSAlert* alert = [[NSAlert alloc] init];
base::scoped_nsobject<NSAlert> alert([[NSAlert alloc] init]);
[alert setMessageText:l10n_util::GetNSString(
IDS_ACCESSIBILITY_PERMISSION_DIALOG_TITLE)];
[alert setInformativeText:
......
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