docs: clarify that return value of gst_filename_to_uri() must be freed
authorTim-Philipp Müller <tim@centricular.com>
Thu, 16 Apr 2015 12:41:20 +0000 (13:41 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 16 Apr 2015 12:42:18 +0000 (13:42 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=747104

gst/gsturi.c

index 9a04dcb..3d78562 100644 (file)
@@ -927,6 +927,9 @@ file_path_contains_relatives (const gchar * path)
  * will be canonicalised so that it doesn't contain any './' or '../' segments.
  *
  * On Windows #filename should be in UTF-8 encoding.
+ *
+ * Returns: newly-allocated URI string, or NULL on error. The caller must
+ *   free the URI string with g_free() when no longer needed.
  */
 gchar *
 gst_filename_to_uri (const gchar * filename, GError ** error)