Fixes instances where an array should have been deleted but wasn't.
From: Erik Hovland <erik@hovland.org>
---
mythplugins/mythphone/mythphone/sipfsm.cpp | 4 ++--
mythplugins/mythphone/mythphone/tone.cpp | 2 +-
mythplugins/mythphone/mythphone/vxml.cpp | 6 +++---
mythplugins/mythphone/mythphone/wavfile.cpp | 2 +-
mythplugins/mythphone/mythphone/webcam.cpp | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/mythplugins/mythphone/mythphone/sipfsm.cpp b/mythplugins/mythphone/mythphone/sipfsm.cpp
index 2efbef8..6ea457a 100644
a
|
b
|
QString SipFsm::DetermineNatAddress() |
824 | 824 | |
825 | 825 | if (resp.contains("200 OK") && !resp.contains("</body")) |
826 | 826 | { |
827 | | delete httpResponse; |
| 827 | delete [] httpResponse; |
828 | 828 | continue; |
829 | 829 | } |
830 | 830 | QString temp1 = resp.section("<body>", 1, 1); |
… |
… |
QString SipFsm::DetermineNatAddress() |
839 | 839 | VERBOSE(VB_IMPORTANT, |
840 | 840 | "SIP: Got invalid HTML response " |
841 | 841 | "whilst detecting your NAT settings"); |
842 | | delete httpResponse; |
| 842 | delete [] httpResponse; |
843 | 843 | break; |
844 | 844 | } |
845 | 845 | } |
diff --git a/mythplugins/mythphone/mythphone/tone.cpp b/mythplugins/mythphone/mythphone/tone.cpp
index 8cb8c0a..c01d87f 100644
a
|
b
|
Tone::~Tone() |
182 | 182 | Stop(); |
183 | 183 | |
184 | 184 | if (toneBuffer) |
185 | | delete toneBuffer; |
| 185 | delete [] toneBuffer; |
186 | 186 | toneBuffer = 0; |
187 | 187 | } |
188 | 188 | |
diff --git a/mythplugins/mythphone/mythphone/vxml.cpp b/mythplugins/mythphone/mythphone/vxml.cpp
index 80bc8c3..549a1c5 100644
a
|
b
|
bool vxmlParser::loadVxmlPage(QString strUrl, QString Method, QString Namelist, |
327 | 327 | QString firstLine = resp.section('\n', 0); |
328 | 328 | if ((firstLine.contains("200 OK")) && !resp.contains("</vxml>")) |
329 | 329 | { |
330 | | delete httpResponse; |
| 330 | delete [] httpResponse; |
331 | 331 | continue; |
332 | 332 | } |
333 | 333 | |
… |
… |
bool vxmlParser::loadVxmlPage(QString strUrl, QString Method, QString Namelist, |
335 | 335 | script.setContent(Content); |
336 | 336 | //cout << "Got VXML content\n" << Content << endl; |
337 | 337 | } |
338 | | delete httpResponse; |
| 338 | delete [] httpResponse; |
339 | 339 | break; |
340 | 340 | } |
341 | 341 | } |
… |
… |
void vxmlParser::PlayBeep(int freqHz, int volume, int ms) |
845 | 845 | |
846 | 846 | Rtp->Transmit(beepBuffer, Samples); |
847 | 847 | waitUntilFinished(false); |
848 | | delete beepBuffer; |
| 848 | delete [] beepBuffer; |
849 | 849 | } |
850 | 850 | |
851 | 851 | |
diff --git a/mythplugins/mythphone/mythphone/wavfile.cpp b/mythplugins/mythphone/mythphone/wavfile.cpp
index 06cf45a..aefbece 100644
a
|
b
|
wavfile::wavfile() |
28 | 28 | wavfile::~wavfile() |
29 | 29 | { |
30 | 30 | if (loaded && audio) |
31 | | delete audio; |
| 31 | delete [] audio; |
32 | 32 | } |
33 | 33 | |
34 | 34 | bool wavfile::load(const char *Filename) |
diff --git a/mythplugins/mythphone/mythphone/webcam.cpp b/mythplugins/mythphone/mythphone/webcam.cpp
index 7a94474..9e345fb 100644
a
|
b
|
void Webcam::camClose() |
219 | 219 | #endif |
220 | 220 | |
221 | 221 | if (picbuff1) |
222 | | delete picbuff1; |
| 222 | delete [] picbuff1; |
223 | 223 | |
224 | 224 | picbuff1 = 0; |
225 | 225 | } |