summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 21:12:05 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 21:12:05 +0000
commitdad77f9468c5a9505067faf3ef5b898f48df640c (patch)
tree18fe559a2b2977608b147d5511aa7a83806162d1 /chrome
parent6fa8436fcafa2571f996036f97e0e1d039e7a22d (diff)
downloadchromium_src-dad77f9468c5a9505067faf3ef5b898f48df640c.zip
chromium_src-dad77f9468c5a9505067faf3ef5b898f48df640c.tar.gz
chromium_src-dad77f9468c5a9505067faf3ef5b898f48df640c.tar.bz2
Linux: Fix leak in print dialog.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6597079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/printing/print_dialog_gtk.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/printing/print_dialog_gtk.cc b/chrome/browser/printing/print_dialog_gtk.cc
index f7a7867..051b244 100644
--- a/chrome/browser/printing/print_dialog_gtk.cc
+++ b/chrome/browser/printing/print_dialog_gtk.cc
@@ -118,10 +118,10 @@ void PrintDialogGtk::OnResponse(GtkWidget* dialog, gint response_id) {
gtk_print_settings_get_page_ranges(gtk_settings_, &num_ranges);
if (gtk_range) {
for (int i = 0; i < num_ranges; ++i) {
- printing::PageRange* range = new printing::PageRange;
- range->from = gtk_range[i].start;
- range->to = gtk_range[i].end;
- ranges_vector.push_back(*range);
+ printing::PageRange range;
+ range.from = gtk_range[i].start;
+ range.to = gtk_range[i].end;
+ ranges_vector.push_back(range);
}
g_free(gtk_range);
}