Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit b0d96cb

Browse files
earthdokCommit bot
earthdok
authored and
Commit bot
committed
Annotate another GTK leak.
BUG=423873 [email protected] Review URL: https://codereview.chromium.org/661593002 Cr-Commit-Position: refs/heads/master@{#299761}
1 parent e9a0066 commit b0d96cb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

chrome/browser/ui/libgtk2ui/gtk2_util.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <gtk/gtk.h>
1010

1111
#include "base/command_line.h"
12+
#include "base/debug/leak_annotations.h"
1213
#include "base/environment.h"
1314
#include "base/memory/scoped_ptr.h"
1415
#include "ui/aura/window.h"
@@ -35,7 +36,11 @@ void CommonInitFromCommandLine(const CommandLine& command_line,
3536
argv[argc] = NULL;
3637
char **argv_pointer = argv.get();
3738

38-
init_func(&argc, &argv_pointer);
39+
{
40+
// http://crbug.com/423873
41+
ANNOTATE_SCOPED_MEMORY_LEAK;
42+
init_func(&argc, &argv_pointer);
43+
}
3944
for (size_t i = 0; i < args.size(); ++i) {
4045
free(argv[i]);
4146
}

0 commit comments

Comments
 (0)