+2006-04-12 Wim Taymans <wim@fluendo.com>
+
+ * tests/check/gst/gstelement.c: (GST_START_TEST):
+ Don't leak the factory.
+
2006-04-12 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
GST_START_TEST (test_class)
{
GstElementClass *klass;
- GstElementFactory *factory;
+ GstElementFactory *factory, *tmp;
GType type;
GST_DEBUG ("finding factory for queue");
fail_if (type != 0);
GST_DEBUG ("now loading the plugin");
- factory =
+ tmp =
GST_ELEMENT_FACTORY (gst_plugin_feature_load (GST_PLUGIN_FEATURE
(factory)));
- fail_if (factory == NULL);
+ fail_if (tmp == NULL);
+
+ gst_object_unref (factory);
+ factory = tmp;
/* feature is now loaded */
type = gst_element_factory_get_element_type (factory);
/* and elementfactory is filled in */
fail_if (klass->elementfactory == NULL);
fail_if (klass->elementfactory != factory);
+
}
GST_END_TEST;