Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_util.cc

Issue 661593002: Annotate another GTK leak. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/gtk2_util.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_util.cc b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
index e8f842cf50c99ddc25dbf6316fc3068ba36c7179..56beb6d083619118049f86566b96a65f50d9bfb7 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_util.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
@@ -9,6 +9,7 @@
#include <gtk/gtk.h>
#include "base/command_line.h"
+#include "base/debug/leak_annotations.h"
#include "base/environment.h"
#include "base/memory/scoped_ptr.h"
#include "ui/aura/window.h"
@@ -35,7 +36,11 @@ void CommonInitFromCommandLine(const CommandLine& command_line,
argv[argc] = NULL;
char **argv_pointer = argv.get();
- init_func(&argc, &argv_pointer);
+ {
+ // http://crbug.com/423873
+ ANNOTATE_SCOPED_MEMORY_LEAK;
+ init_func(&argc, &argv_pointer);
+ }
for (size_t i = 0; i < args.size(); ++i) {
free(argv[i]);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698