From afdd0a07be6a669cdd8343fc033f170395b470c0 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 14 Apr 2006 14:37:56 +0000 Subject: *** empty log message *** --- client/mainwindow.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 49cd634..8d7c04f 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -165,12 +165,11 @@ void MainWindow::snapshot_clicked() char rgb[720 * 576 * 4]; - QImage *screenshot = new QImage((uchar*)rgb, 720, 576, QImage::Format_RGB32); + QImage screenshot((uchar*)rgb, 720, 576, QImage::Format_RGB32); decoder->snapshot(rgb); QPixmap *p = new QPixmap(); - *p = QPixmap::fromImage(*screenshot); - delete screenshot; + *p = QPixmap::fromImage(screenshot); history->addHistoryItem(new HistoryWidget(p)); } -- cgit v1.2.3