summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-20 15:34:00 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-20 15:34:00 +0200
commit2511ceb9f0c672c05fe22e303bc51ad20ddf0db1 (patch)
tree3cf7e3e4c8fdb2c1a69f4dfa8dc7b62a2e60b0a8
parent3ca534a8759d01a5962e8006c32839fbdd2e47d7 (diff)
Fix memory leak.
-rw-r--r--src/mainwindow.cc2
1 files changed, 2 insertions, 0 deletions
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);
}