/**
* SECTION:gstcontext
+ * @title: GstContext
* @short_description: Lightweight objects to represent element contexts
* @see_also: #GstMiniObject, #GstElement
*
}
g_free (context->context_type);
+#ifdef USE_POISONING
+ memset (context, 0xff, sizeof (GstContext));
+#endif
+
g_slice_free1 (sizeof (GstContext), context);
}
* Get a writable version of the structure.
*
* Returns: The structure of the context. The structure is still
- * owned by the event, which means that you should not free it and
- * that the pointer becomes invalid when you free the event.
+ * owned by the context, which means that you should not free it and
+ * that the pointer becomes invalid when you free the context.
* This function checks if @context is writable.
*
* Since: 1.2