mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
removed a leak
Original commit message from CVS: removed a leak
This commit is contained in:
parent
ee2d89cb57
commit
4bdaed3966
3 changed files with 4 additions and 6 deletions
|
@ -572,8 +572,7 @@ gst_bin_create_plan_func (GstBin *bin)
|
|||
GSList *pending = NULL;
|
||||
GstBin *pending_bin;
|
||||
|
||||
GST_DEBUG_SET_STRING("(\"%s\")",gst_element_get_name (GST_ELEMENT (bin)));
|
||||
GST_DEBUG_ENTER_STRING;
|
||||
GST_DEBUG_ENTER("(\"%s\")",gst_element_get_name (GST_ELEMENT (bin)));
|
||||
|
||||
GST_INFO_ELEMENT (GST_CAT_PLANNING, bin, "creating plan");
|
||||
|
||||
|
@ -710,8 +709,7 @@ gst_bin_iterate_func (GstBin *bin)
|
|||
GstPad *pad;
|
||||
GstBuffer *buf = NULL;
|
||||
|
||||
GST_DEBUG_SET_STRING("(\"%s\")", gst_element_get_name (GST_ELEMENT (bin)));
|
||||
GST_DEBUG_ENTER_STRING;
|
||||
GST_DEBUG_ENTER("(\"%s\")", gst_element_get_name (GST_ELEMENT (bin)));
|
||||
|
||||
g_return_if_fail (bin != NULL);
|
||||
g_return_if_fail (GST_IS_BIN (bin));
|
||||
|
|
|
@ -82,6 +82,7 @@ G_GNUC_UNUSED static gchar *_debug_string = NULL;
|
|||
fprintf(stderr,GST_DEBUG_PREFIX(format": entering\n" , ## args )); \
|
||||
}G_STMT_END
|
||||
|
||||
// FIXME FIXME FIXME this leaks like crazy
|
||||
#define GST_DEBUG_SET_STRING(format, args...) \
|
||||
gchar *_debug_string = g_strdup_printf(format , ## args )
|
||||
|
||||
|
|
|
@ -328,8 +328,7 @@ void gst_bin_schedule_func(GstBin *bin) {
|
|||
GList *chains;
|
||||
_GstBinChain *chain;
|
||||
|
||||
GST_DEBUG_SET_STRING("(\"%s\")",gst_element_get_name (GST_ELEMENT (bin)));
|
||||
GST_DEBUG_ENTER_STRING;
|
||||
GST_DEBUG_ENTER("(\"%s\")",gst_element_get_name (GST_ELEMENT (bin)));
|
||||
|
||||
gst_bin_schedule_cleanup(bin);
|
||||
|
||||
|
|
Loading…
Reference in a new issue