Henrik Boström fdb92012fb Avoid use-after-move in PeerConnection::Set[Local/Remote]Description.
In Set[Local/Remote]Description we have a raw pointer |desc| whose
ownership is passed to a helper function. Before this CL we continue
to use |desc| after ownership is passed under the assumption that the
object is not deleted.

In this CL, we instead rely on [local/remote]_description() after the
helper function has been called. In practice, this is a pointer to
the same object, but it removes the assumption about |desc| being
valid after its ownership is passed.

Bug: None
Change-Id: I144a190ea00f303f4713b64c45aa3e811c0f4b2e
Reviewed-on: https://webrtc-review.googlesource.com/21320
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20654}
2017-11-13 13:53:38 +00:00
..
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00
2017-10-30 18:08:29 +00:00