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).
This commit is contained in:
Tommi Myöhänen 2011-12-14 08:32:50 -03:00 committed by Thiago Santos
parent f21ea162ad
commit 9648d100b4

View file

@ -1089,6 +1089,8 @@ gst_camera_bin_handle_message (GstBin * bin, GstMessage * message)
}
dec_counter = TRUE;
}
g_error_free (err);
g_free (debug);
}
break;
case GST_MESSAGE_EOS:{