Free the iterator after iterating on bin elements.
authorMohammed Sameer <msameer@foolab.org>
Sun, 14 Apr 2013 00:56:37 +0000 (03:56 +0300)
committerMohammed Sameer <msameer@foolab.org>
Fri, 2 Aug 2013 21:57:51 +0000 (00:57 +0300)
We were practically leaking the memory and also holding
a reference to camerabin which prevents deleting it because
reference count will never reach 0

lib/qtcampropertysetter.cpp

index 3d51f71..29db83d 100644 (file)
@@ -65,6 +65,8 @@ public:
        break;
       }
     }
+
+    gst_iterator_free(iter);
   }
 
   void setProperties(GstElement *element) {