summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qcam/viewfinder.cpp5
-rw-r--r--src/qcam/viewfinder.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/qcam/viewfinder.cpp b/src/qcam/viewfinder.cpp
index 224a227d..98a8ab68 100644
--- a/src/qcam/viewfinder.cpp
+++ b/src/qcam/viewfinder.cpp
@@ -16,6 +16,11 @@ ViewFinder::ViewFinder(QWidget *parent)
{
}
+ViewFinder::~ViewFinder()
+{
+ delete image_;
+}
+
void ViewFinder::display(const unsigned char *raw, size_t size)
{
converter_.convert(raw, size, image_);
diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h
index c9ca9891..33bdb146 100644
--- a/src/qcam/viewfinder.h
+++ b/src/qcam/viewfinder.h
@@ -17,6 +17,7 @@ class ViewFinder : public QLabel
{
public:
ViewFinder(QWidget *parent);
+ ~ViewFinder();
int setFormat(unsigned int format, unsigned int width,
unsigned int height);