gst_buffer_pool_unref (fakesrc->pool);
fakesrc->pool = NULL;
}
+ if (fakesrc->last_message)
+ g_free (fakesrc->last_message);
break;
default:
g_assert_not_reached ();
poptBadOption (context, 0),
poptStrerror (nextopt),
(*argv)[0]);
+
+ poptFreeContext (context);
exit (1);
}
+ poptFreeContext (context);
/* let's do this once there are 1.6.3 popt debs out
*argc = poptStrippedArgv (context, *argc, *argv); */
GMainLoop *loop = mainloops->data;
mainloops = g_slist_delete_link (mainloops, mainloops);
g_main_loop_quit (loop);
+ g_main_loop_unref (loop);
}
}
* Copies the given #GstData if the refcount is greater than 1 so that the
* #GstData object can be written to safely.
*
- * Returns: a copy of the data if the refcount is > 1, data if the refcount == 1
+ * Returns: a copy of the data if the refcount is > 1 or the buffer is
+ * marked READONLY, data if the refcount == 1,
* or NULL if the data could not be copied. The refcount of the original buffer
* is decreased when a copy is made, so you are not supposed to use it after a
* call to this function.
{
GstElementFactory *factory;
- g_return_val_if_fail(name != NULL, NULL);
+ g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (type, NULL);
g_return_val_if_fail (details, NULL);
g_timer_stop (timer);
seconds = g_timer_elapsed (timer, NULL);
+ g_timer_destroy (timer);
g_print ("registry: loaded %s in %f seconds\n (%s)\n",
registry->name, seconds, xmlregistry->location);
xmlregistry->parser = gst_xml_registry_parse_padtemplate;
caps = gst_caps_new (xmlregistry->caps_name, xmlregistry->caps_mime, xmlregistry->props);
+ g_free (xmlregistry->caps_mime);
+ g_free (xmlregistry->caps_name);
xmlregistry->caps = gst_caps_append (xmlregistry->caps, caps);
xmlregistry->props = NULL;
gst_buffer_pool_unref (fakesrc->pool);
fakesrc->pool = NULL;
}
+ if (fakesrc->last_message)
+ g_free (fakesrc->last_message);
break;
default:
g_assert_not_reached ();