diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-06-30 07:02:01 (GMT) |
|---|---|---|
| committer | Kevin Smith <kevin.smith@isode.com> | 2015-07-07 19:58:12 (GMT) |
| commit | 799a7ac203dc2576872894dfdd1adb5cdbbacf7b (patch) | |
| tree | e0242decf49222b83674143cf04f61c3dc01bc35 /Swiften/FileTransfer/JingleFileTransfer.h | |
| parent | abd96284e162b3594bd0fc90a5da6b78709dee23 (diff) | |
| download | swift-799a7ac203dc2576872894dfdd1adb5cdbbacf7b.zip swift-799a7ac203dc2576872894dfdd1adb5cdbbacf7b.tar.bz2 | |
Fix memory leaks reported by ASAN
Test-Information:
Tested on Elementary OS with a LLVM/Clang 3.7.0 build. With this patch
the reports for the fixed locations are gone.
Change-Id: I0260fc85ad662335a69ace331f51ebe2f864ef97
Diffstat (limited to 'Swiften/FileTransfer/JingleFileTransfer.h')
| -rw-r--r-- | Swiften/FileTransfer/JingleFileTransfer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Swiften/FileTransfer/JingleFileTransfer.h b/Swiften/FileTransfer/JingleFileTransfer.h index aabeec2..16a55c6 100644 --- a/Swiften/FileTransfer/JingleFileTransfer.h +++ b/Swiften/FileTransfer/JingleFileTransfer.h | |||
| @@ -6,10 +6,11 @@ | |||
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Base/API.h> | 9 | #include <vector> |
| 10 | 10 | ||
| 11 | #include <boost/shared_ptr.hpp> | 11 | #include <boost/shared_ptr.hpp> |
| 12 | #include <vector> | 12 | |
| 13 | #include <Swiften/Base/API.h> | ||
| 13 | #include <Swiften/Base/boost_bsignals.h> | 14 | #include <Swiften/Base/boost_bsignals.h> |
| 14 | #include <Swiften/Elements/ErrorPayload.h> | 15 | #include <Swiften/Elements/ErrorPayload.h> |
| 15 | #include <Swiften/Elements/JingleS5BTransportPayload.h> | 16 | #include <Swiften/Elements/JingleS5BTransportPayload.h> |
| @@ -64,6 +65,7 @@ namespace Swift { | |||
| 64 | typedef std::map<std::string, JingleS5BTransportPayload::Candidate> CandidateMap; | 65 | typedef std::map<std::string, JingleS5BTransportPayload::Candidate> CandidateMap; |
| 65 | 66 | ||
| 66 | void setTransporter(FileTransferTransporter* transporter); | 67 | void setTransporter(FileTransferTransporter* transporter); |
| 68 | void removeTransporter(); | ||
| 67 | void fillCandidateMap( | 69 | void fillCandidateMap( |
| 68 | CandidateMap& map, | 70 | CandidateMap& map, |
| 69 | const std::vector<JingleS5BTransportPayload::Candidate>&); | 71 | const std::vector<JingleS5BTransportPayload::Candidate>&); |
Swift