summaryrefslogtreecommitdiffstats
path: root/printing/printing_context_win_unittest.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 22:57:35 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 22:57:35 +0000
commit128bec3cd249be7675fec39d184da047d7fbab76 (patch)
treee43106dea3eeee586c22cb0e994df0fd49414246 /printing/printing_context_win_unittest.cc
parentbc669d1f61befa7639d5cebb051bd4ccd85bee90 (diff)
downloadchromium_src-128bec3cd249be7675fec39d184da047d7fbab76.zip
chromium_src-128bec3cd249be7675fec39d184da047d7fbab76.tar.gz
chromium_src-128bec3cd249be7675fec39d184da047d7fbab76.tar.bz2
Use the existing PRINTPAGERANGE rather than allocating a new one.
BUG=68307 TEST=Dr. Memory no longer complains. Review URL: http://codereview.chromium.org/5998010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context_win_unittest.cc')
-rw-r--r--printing/printing_context_win_unittest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/printing/printing_context_win_unittest.cc b/printing/printing_context_win_unittest.cc
index 874c62d..802ba44 100644
--- a/printing/printing_context_win_unittest.cc
+++ b/printing/printing_context_win_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -38,7 +38,6 @@ HRESULT WINAPI PrintDlgExMock(LPPRINTDLGEX lppd) {
// Pretend the page range is 1-5, but since lppd->Flags does not have
// PD_SELECTION set, this really shouldn't matter.
lppd->nPageRanges = 1;
- lppd->lpPageRanges = new PRINTPAGERANGE[1];
lppd->lpPageRanges[0].nFromPage = 1;
lppd->lpPageRanges[0].nToPage = 5;