The heap allocated variable alpha is an array. So it shold be deleted as such.
From: Erik Hovland <erik@hovland.org>
---
mythtv/libs/libmythtv/util-vdpau.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mythtv/libs/libmythtv/util-vdpau.cpp b/mythtv/libs/libmythtv/util-vdpau.cpp
index 9b61d92..5280447 100644
a
|
b
|
bool VDPAUContext::InitBuffers(int width, int height, int numbufs)
|
563 | 563 | pitches |
564 | 564 | ); |
565 | 565 | } |
566 | | delete tmp; |
| 566 | delete [] tmp; |
567 | 567 | } |
568 | 568 | |
569 | 569 | } |
… |
… |
bool VDPAUContext::InitPiP(QSize vid_size)
|
1777 | 1777 | NULL |
1778 | 1778 | ); |
1779 | 1779 | CHECK_ST |
1780 | | delete alpha; |
| 1780 | delete [] alpha; |
1781 | 1781 | } |
1782 | 1782 | else |
1783 | 1783 | ok = false; |