camerabin2: fix leak on error handling
authorTommi Myöhänen <tommi.myohanen@digia.com>
Wed, 14 Dec 2011 11:32:50 +0000 (08:32 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 14 Dec 2011 11:32:50 +0000 (08:32 -0300)
commit9648d100b49fdb5399d9cd96414deb13bfab4398
treeebfca191b1cb0948fadc7d05df8263ee5dfbc663
parentf21ea162ad3047d38d6e678aded23449c48f9f21
camerabin2: fix leak on error handling

Camerabin2 parses warning messages with gst_message_parse_warning(message,
&err, &debug) but doesn't free given GError and debug strings.
Documentation shows that the ownership of those fields is transferred
to caller (they are marked "[transfer full]" in the API docs).
gst/camerabin2/gstcamerabin2.c