1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed a new[]/delete mismatch in cMenuEditStrItem::LeaveEditMode()

This commit is contained in:
Klaus Schmidinger 2007-10-13 12:07:27 +02:00
parent 929d3e9ba2
commit b943bf2c50
3 changed files with 7 additions and 4 deletions

View File

@ -1530,6 +1530,7 @@ Udo Richter <udo_richter@gmx.de>
for fixing clearing color buttons in the 'curses' skin for fixing clearing color buttons in the 'curses' skin
for adding a missing error report to cCuttingThread::Action() for adding a missing error report to cCuttingThread::Action()
for reporting a problem in handling reallocated memory in cCharSetConv::Convert() for reporting a problem in handling reallocated memory in cCharSetConv::Convert()
for fixing a new[]/delete mismatch in cMenuEditStrItem::LeaveEditMode()
Sven Kreiensen <svenk@kammer.uni-hannover.de> Sven Kreiensen <svenk@kammer.uni-hannover.de>
for his help in keeping 'channels.conf.terr' up to date for his help in keeping 'channels.conf.terr' up to date

View File

@ -5462,3 +5462,5 @@ Video Disk Recorder Revision History
- Updated the Italian OSD texts (thanks to Diego Pierotto). - Updated the Italian OSD texts (thanks to Diego Pierotto).
- Fixed handling reallocated memory in cCharSetConv::Convert() (reported by Udo - Fixed handling reallocated memory in cCharSetConv::Convert() (reported by Udo
Richter). Richter).
- Fixed a new[]/delete mismatch in cMenuEditStrItem::LeaveEditMode() (thanks to
Udo Richter).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menuitems.c 1.52 2007/10/13 10:39:40 kls Exp $ * $Id: menuitems.c 1.53 2007/10/13 12:05:37 kls Exp $
*/ */
#include "menuitems.h" #include "menuitems.h"
@ -302,11 +302,11 @@ void cMenuEditStrItem::LeaveEditMode(bool SaveValue)
stripspace(value); stripspace(value);
} }
lengthUtf8 = 0; lengthUtf8 = 0;
delete valueUtf8; delete[] valueUtf8;
valueUtf8 = NULL; valueUtf8 = NULL;
delete allowedUtf8; delete[] allowedUtf8;
allowedUtf8 = NULL; allowedUtf8 = NULL;
delete charMapUtf8; delete[] charMapUtf8;
charMapUtf8 = NULL; charMapUtf8 = NULL;
pos = -1; pos = -1;
offset = 0; offset = 0;