factory: plug pad leak in collect_streams
authorDavid Svensson Fors <davidsf@axis.com>
Tue, 12 Jun 2012 11:36:57 +0000 (13:36 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 14 Jun 2012 08:14:06 +0000 (10:14 +0200)
commitaa158fa738bd3a5b7ba2aa561d9f1347af155570
tree29ca8ac0648e7009d496213930521eaab7a8329e
parentef29cc6d78312c303f1f79fdc4c7623436be5eaa
factory: plug pad leak in collect_streams

In gst_rtsp_media_factory_collect_streams: unref the srcpad that
was retrieved using gst_element_get_static_pad. gst_ghost_pad_new
will take one reference, and the other reference will otherwise
give a memory leak.
gst/rtsp-server/rtsp-media-factory.c