Skip to content

Commit

Permalink
Fix memory leak in unit test
Browse files Browse the repository at this point in the history
BUG=70388
TEST=PrintingContextTest.PrintAll


Review URL: http://codereview.chromium.org/7795031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100102 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
arthurhsu@chromium.org committed Sep 8, 2011
1 parent 61f900b commit e7f96d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions printing/printing_context_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ void PrintingContextWin::AskUserForSettings(gfx::NativeView view,

// TODO(maruel): Support PD_PRINTTOFILE.
callback->Run(ParseDialogResultEx(dialog_options));
delete callback;
#endif
}

Expand Down
6 changes: 0 additions & 6 deletions tools/valgrind/drmemory/suppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -746,12 +746,6 @@ LEAK
*!net::SSL*SocketNSS::DoHandshake
*!net::SSL*SocketNSS::DoHandshakeLoop

# http://crbug.com/70388
LEAK
*!operator new
*!NewCallback<PrintingContextTest,enum printing::PrintingContext::Result>
*!PrintingContextTest_PrintAll_Test::TestBody

# http://crbug.com/73744
LEAK
*!operator new
Expand Down

0 comments on commit e7f96d1

Please sign in to comment.