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/mythtv/libs/libmythtv/util-vdpau.cpp
+++ b/mythtv/libs/libmythtv/util-vdpau.cpp
@@ -563,7 +563,7 @@ bool VDPAUContext::InitBuffers(int width, int height, int numbufs)
                     pitches
                 );
             }
-            delete tmp;
+            delete [] tmp;
         }
 
     }
@@ -1777,7 +1777,7 @@ bool VDPAUContext::InitPiP(QSize vid_size)
                 NULL
             );
             CHECK_ST
-            delete alpha;
+            delete [] alpha;
         }
         else
             ok = false;
