Fix memory leaks
[libs/vr.git] / source / stereoview.cpp
index f08cd79ea1ef7166506265ff46dbee457d4df616..868447435c213551f55c412e41ae0450aa88d3e5 100644 (file)
@@ -129,6 +129,11 @@ StereoView::Eye::Eye():
        target(0)
 { }
 
+StereoView::Eye::~Eye()
+{
+       delete target;
+}
+
 void StereoView::Eye::create_target(unsigned w, unsigned h)
 {
        delete target;