rtspclientsink: make sure not to use freed string
authorTim-Philipp Müller <tim@centricular.com>
Mon, 2 Apr 2018 11:35:04 +0000 (12:35 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 2 Apr 2018 11:35:04 +0000 (12:35 +0100)
commite3bbd40f0e288968f3b5e8cffa8a90e1018774bc
treef5c486cb259dc3e9393a2ebd1a3eef46c438f4f7
parentc36d6b477cbee88381ecce45abccbd47309bb7d3
rtspclientsink: make sure not to use freed string

Set transport string to NULL after freeing it, so that
at worst we get a NULL pointer if constructing a new
transport string fails (which shouldn't really fail here).
Also check return value of that, just in case.

CID 1433768.
gst/rtsp-sink/gstrtspclientsink.c