add: if (bvw->priv->queue) { g_async_queue_unref (bvw->priv->queue); bvw->priv->queue = NULL; }
context: bacon_video_widget_finalize (GObject * object){  BaconVideoWidget *bvw = (BaconVideoWidget *) object;  if (bvw->priv->metadata_hash)    {      g_hash_table_destroy (bvw->priv->metadata_hash);      bvw->priv->metadata_hash = NULL;    }  if (bvw->priv->vis_plugins_list)    {      g_list_foreach (bvw->priv->vis_plugins_list, (GFunc) g_free, NULL);      g_list_free (bvw->priv->vis_plugins_list);      bvw->priv->vis_plugins_list = NULL;    }  if (bvw->priv->play != NULL && GST_IS_PLAY (bvw->priv->play))    {      gst_element_set_state (GST_ELEMENT (bvw->priv->play), GST_STATE_READY);      /* FIXME: we are leaking the GstPlay. */      /* g_object_unref (bvw->priv->play); */      bvw->priv->play = NULL;    }}