katetiger: don't unref NULL buffer

This commit is contained in:
Tim-Philipp Müller 2011-12-15 18:14:24 +00:00
parent 05a710b3ad
commit 7ca4ba9491

View file

@ -403,8 +403,10 @@ gst_kate_tiger_dispose (GObject * object)
tiger->default_font_desc = NULL;
}
gst_buffer_unref (tiger->render_buffer);
tiger->render_buffer = NULL;
if (tiger->render_buffer) {
gst_buffer_unref (tiger->render_buffer);
tiger->render_buffer = NULL;
}
g_cond_free (tiger->cond);
tiger->cond = NULL;