Some small bug in vdr 1.4.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

While checking some plugins with valgrind, I stumbled across this minor
bug in vdr:

The skinDescriptions array allocated in cMenuSetupOsd should be deleted
with delete[] instead of delete.

bye,

Tobias
-------------- next part --------------
--- vdr-1.4.0.orig/menu.c
+++ vdr-1.4.0/menu.c
@@ -2131,7 +2131,7 @@
 cMenuSetupOSD::~cMenuSetupOSD()
 {
   cFont::SetCode(I18nCharSets()[Setup.OSDLanguage]);
-  delete skinDescriptions;
+  delete[] skinDescriptions;
 }
 
 void cMenuSetupOSD::Set(void)

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux