From 2511ceb9f0c672c05fe22e303bc51ad20ddf0db1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 20 Sep 2014 15:34:00 +0200 Subject: Fix memory leak. --- src/mainwindow.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 43238eb..5e7a041 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -108,6 +108,8 @@ void MainWindow::newImage(Frame frame) p.convertFromImage(img); l->setPixmap(p); + free(frame.data); + // printf("v"); fflush(stdout); } -- cgit v1.2.3