vlc | branch: master | Marvin Scholz <epira...@gmail.com> | Mon Oct 29 12:42:22 
2018 +0100| [077cb6e5fd6244198a7522481af98c1ccee8a051] | committer: Marvin 
Scholz

demux/adaptive: Do not throw exception pointer

Found with lgtm.com

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=077cb6e5fd6244198a7522481af98c1ccee8a051
---

 modules/demux/adaptive/tools/MovingAverage.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/tools/MovingAverage.hpp 
b/modules/demux/adaptive/tools/MovingAverage.hpp
index d79f7f453e..c434535dd1 100644
--- a/modules/demux/adaptive/tools/MovingAverage.hpp
+++ b/modules/demux/adaptive/tools/MovingAverage.hpp
@@ -57,7 +57,7 @@ namespace adaptive
     MovingAverage<T>::MovingAverage(unsigned nbobs) : avg(0)
     {
         if(nbobs < 1)
-            throw new std::exception();
+            throw std::exception();
         this->maxobs = nbobs;
         previous = 0;
     }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to