mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
f21ea162ad
commit
9648d100b4
1 changed files with 2 additions and 0 deletions
|
@ -1089,6 +1089,8 @@ gst_camera_bin_handle_message (GstBin * bin, GstMessage * message)
|
||||||
}
|
}
|
||||||
dec_counter = TRUE;
|
dec_counter = TRUE;
|
||||||
}
|
}
|
||||||
|
g_error_free (err);
|
||||||
|
g_free (debug);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_MESSAGE_EOS:{
|
case GST_MESSAGE_EOS:{
|
||||||
|
|
Loading…
Reference in a new issue