X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgsttoc.c;h=fd6bd665eb14b73b8536410ea9147cd404690b34;hb=5470f6df00595f4ab44871e0e633bf15006abc5c;hp=f501348e71982a43afafd434f45f9e1b26e1d6a7;hpb=a87b4551a6090663a1714f263d4e20fe75eb46ca;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gsttoc.c b/gst/gsttoc.c index f501348..fd6bd66 100644 --- a/gst/gsttoc.c +++ b/gst/gsttoc.c @@ -309,6 +309,10 @@ gst_toc_free (GstToc * toc) if (toc->tags != NULL) gst_tag_list_unref (toc->tags); +#ifdef USE_POISONING + memset (toc, 0xff, sizeof (GstToc)); +#endif + g_slice_free (GstToc, toc); } @@ -325,6 +329,10 @@ gst_toc_entry_free (GstTocEntry * entry) if (entry->tags != NULL) gst_tag_list_unref (entry->tags); +#ifdef USE_POISONING + memset (entry, 0xff, sizeof (GstTocEntry)); +#endif + g_slice_free (GstTocEntry, entry); } @@ -777,7 +785,7 @@ gst_toc_entry_get_toc (GstTocEntry * entry) * * Gets the parent #GstTocEntry of @entry. * - * Returns: (transfer none): The parent #GstTocEntry of @entry + * Returns: (transfer none) (nullable): The parent #GstTocEntry of @entry */ GstTocEntry * gst_toc_entry_get_parent (GstTocEntry * entry)