camerabin: application element memory leak fixes
authorTeemu Katajisto <teemu.katajisto@digia.com>
Thu, 10 Feb 2011 14:00:03 +0000 (16:00 +0200)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 11 Feb 2011 12:22:59 +0000 (09:22 -0300)
commit7e9fb16c4858d7384641075949d5642c3beaa8fc
tree2d9bf2feee7ae84be6b3df0d855e089685785fc6
parenta11b314b1ecceb7311162962c2f6b4e7fb21ede7
camerabin: application element memory leak fixes

 If videobin/imagebin was never set to READY state the ownership
 of elements created and set by application were never taken by
 bin and therefore gst_object_sink is called for these elements
 before unreffing (they may still be in floating state and not
 unreffed properly without sinking first)
gst/camerabin/camerabinimage.c
gst/camerabin/camerabinvideo.c