GNOME Bugzilla – Bug 783955
mpegpsmux: remove unnecessary g_return_val_if_fail()
Last modified: 2017-06-26 23:24:54 UTC
I have found caps leak and invalid return at mpegpsmux_create_stream() line 232: g_return_val_if_fail (s != NULL, FALSE);
Created attachment 354035 [details] [review] mpegpsmux : remove caps leak and invalid return
Review of attachment 354035 [details] [review]: ::: gst/mpegpsmux/mpegpsmux.c @@ -231,2 @@ s = gst_caps_get_structure (caps, 0); - g_return_val_if_fail (s != NULL, FALSE); How were you able to make this assertion happen? It looks like this code can't ever happen unless something is really wrong elsewhere already... in which case the caps leak is probably the least of the problems.
I don't have real issue about this. I have found it during merging the latest upstream patches to my local.
commit ed5d677dce5d2cbde684fc2cc753477fdde312bf Author: Eunhae Choi <eunhae1.choi@samsung.com> Date: Mon Jun 19 20:35:30 2017 +0900 mpegpsmux: remove unnecessary g_return_if_fail() This should never happen, and should be a g_assert() if it's a worry. Fixes warnings from source code checkers about possible caps leaks here. https://bugzilla.gnome.org/show_bug.cgi?id=783955