kate: fix caps and string leaks and some minor clean-ups
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 2 Jan 2011 13:52:36 +0000 (13:52 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 2 Jan 2011 13:57:58 +0000 (13:57 +0000)
commit992c05f840381dd251d76eda4f3cc05fb5312c68
tree18b908c8f720ce772b26bec6627b1a76d1c679d1
parent4b56970d58246dc6a961ee36937eaae180b3aaea
kate: fix caps and string leaks and some minor clean-ups

Don't leak source caps. Use GST_PTR_FORMAT to log caps, so
we don't need to leak strings from gst_caps_to_string().
No need to use GST_DEBUG_FUNCPTR for vfuncs where the base
class will never look them up (like property getters/setters).
Don't use g_return_*_if_fail() for things that aren't directly
programming errors (by the application developer).

Fixes kate unit test under valgrind.
ext/kate/gstkatedec.c
ext/kate/gstkatetiger.c
ext/kate/gstkateutil.c