Set RTMP_PUB_ALLOC if tcUrl is allocated in PublisherAuth
commit0226b868539463e27dead0892bb48493ddcd0337
authorMartin Storsjo <martin@martin.st>
Sat, 5 Jul 2014 21:44:29 +0000 (6 00:44 +0300)
committerMartin Storsjo <martin@martin.st>
Mon, 7 Jul 2014 07:15:17 +0000 (7 10:15 +0300)
treec6b411a1587f98e2cc0fb57fbf35e4f89ecd70ef
parent1a07d6826506b21612b0e6e2b5fa9fb29b01921e
Set RTMP_PUB_ALLOC if tcUrl is allocated in PublisherAuth

This makes sure we don't free tcUrl in RTMP_Close when reconnecting,
and avoids leaks (or simplifies code to avoid leaks).

This fixes connecting with authentication (both adobe and limelight)
when the app has been specified separately from the rest of the url.

This is only a temporary step while refactoring, this is removed
in a later commit.
librtmp/rtmp.c