plugins: do not free debug category in finalize method.
authorMatthieu Bouron <matthieu.bouron@collabora.com>
Fri, 3 Jan 2014 12:49:05 +0000 (12:49 +0000)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 6 Jan 2014 09:11:54 +0000 (10:11 +0100)
Fixes a crash when multiple vaapidecode elements are finalized since
the debug category is created once in the class init method.

This is a regression from git commit 7e58d60.

https://bugzilla.gnome.org/show_bug.cgi?id=721390

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/vaapi/gstvaapipluginbase.c

index e1ff740..1c0bc1a 100644 (file)
@@ -150,7 +150,6 @@ gst_vaapi_plugin_base_finalize (GstVaapiPluginBase * plugin)
     gst_object_unref (plugin->sinkpad);
   if (plugin->srcpad)
     gst_object_unref (plugin->srcpad);
-  gst_debug_category_free (plugin->debug_category);
 }
 
 /**