Permalink
Browse files

Use the correct delete for the array pulse_host. Reported by Coverity.

  • Loading branch information...
1 parent d5528ae commit 99ebebd413371b8a7a7ffc23e2cbc2dec0101025 @stuartm stuartm committed May 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmyth/audio/audiooutputpulse.cpp
@@ -424,7 +424,7 @@ bool AudioOutputPulseAudio::ContextConnect(void)
int chk = pa_context_connect(
pcontext, pulse_host, (pa_context_flags_t)0, NULL);
- delete(pulse_host);
+ delete[] pulse_host;
if (chk < 0)
{

0 comments on commit 99ebebd

Please sign in to comment.