diff options
author | deva <deva> | 2006-04-14 14:37:56 +0000 |
---|---|---|
committer | deva <deva> | 2006-04-14 14:37:56 +0000 |
commit | afdd0a07be6a669cdd8343fc033f170395b470c0 (patch) | |
tree | f5422200c992ae43e9aef42136aab24578fbbfd0 /client/mainwindow.cc | |
parent | e5dc1f42337228bf367ae8ea28469a8eef4861bd (diff) |
*** empty log message ***
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r-- | client/mainwindow.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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)); } |