rtsp-media-factory: Don't cache any media if NULL was returned as key
authorSebastian Dröge <sebastian@centricular.com>
Mon, 25 Sep 2017 16:40:17 +0000 (19:40 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 25 Sep 2017 16:41:33 +0000 (19:41 +0300)
commitc04e3b07ddef74619367f5c7a2a664c664742096
tree01ed1c0af4c33f6764c46985dfc5e59a0586df20
parentf1088f368fd5a3d5b5f16896cea8d2f32a30fe30
rtsp-media-factory: Don't cache any media if NULL was returned as key

The docs already mentioned this, but we actually stored it in the hash
table with key==NULL and leaked its reference forever.
gst/rtsp-server/rtsp-media-factory.c