Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/187>
gst_validate_action_type_init (type);
- /* action types are never freed */
- GST_MINI_OBJECT_FLAG_SET (type, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
return type;
}
action->repeat, NULL);
done:
+ gst_clear_mini_object ((GstMiniObject **) & type);
if (scenario)
gst_object_unref (scenario);
g_assert (g_main_context_acquire (g_main_context_default ()));
g_main_context_release (g_main_context_default ());
+ g_list_free_full (priv->seeks,
+ (GDestroyNotify) gst_validate_seek_information_free);
g_list_free_full (priv->actions, (GDestroyNotify) gst_mini_object_unref);
g_list_free_full (priv->interlaced_actions,
(GDestroyNotify) gst_mini_object_unref);
return NULL;
}
+/* Takes ownership of @structures */
static GList *
get_config_from_structures (GList * structures, GstStructure * local_vars,
const gchar * suffix)
}
gst_structure_foreach (structure,
(GstStructureForeachFunc) _set_vars_func, local_vars);
+ gst_structure_free (structure);
} else {
gst_validate_structure_resolve_variables (structure, local_vars);
result = g_list_append (result, structure);
gst_structure_free (structure);
}
}
+ g_list_free (structures);
return result;
}
result = get_config_from_structures (structures, local_vars, suffix);
loaded_globals = TRUE;
- g_list_free (structures);
gst_structure_free (local_vars);
return result;
}
}
g_free (filename);
+ g_free (debug);
g_strfreev (config_strs);
return get_config_from_structures (res, NULL, suffix);
if self._xml_path.endswith(ext):
return self._xml_path[:len(self._xml_path) - (len(ext) + 1)]
- assert "Not reached" is None
+ assert "Not reached" == None # noqa
@staticmethod
def new_from_uri(uri, verbose=False, include_frames=False, is_push=False, is_skipped=False):
int main (int argc, gchar ** argv);
static int
-run_test_from_file (const gchar * testfile, gboolean use_fakesinks)
+run_test_from_file (gchar * testfile, gboolean use_fakesinks)
{
gint argc, ret;
gchar **args, **argv;
g_strfreev (args);
g_free (argv);
+ g_free (testfile);
return ret;
-
}
int
if (scenario)
gst_validate_abort
("Can not specify scenario and testfile at the same time");
+ g_option_context_free (ctx);
return run_test_from_file (testfile, use_fakesinks);
}