client: fix factory leak
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 28 Nov 2012 10:05:08 +0000 (11:05 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 28 Nov 2012 10:05:08 +0000 (11:05 +0100)
commite5ba3728086094b0518a980c3a42574f22a81ecc
treec957c504ddcae7183c68e7ffbcfc039336501728
parentb4c168c71dec09db5f30c7f2fa88cc4c2a8bc134
client: fix factory leak

Keep the factory in the state object only for authorization checks and make
sure we unref it on failure. Also don't keep invalid objects in the state
object.
gst/rtsp-server/rtsp-client.c