remove bad delete[]s
svn: r2532
This commit is contained in:
parent
40518b1e08
commit
68334bd959
|
@ -500,7 +500,6 @@ void wxSuffixMap::Initialize(const char *resname, const char *devresname,
|
||||||
}
|
}
|
||||||
|
|
||||||
SearchResource("", (const char **)names, count, (char **)&r);
|
SearchResource("", (const char **)names, count, (char **)&r);
|
||||||
delete[] names;
|
|
||||||
|
|
||||||
if (!r) {
|
if (!r) {
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
|
@ -554,7 +553,6 @@ void wxSuffixMap::Initialize(const char *resname, const char *devresname,
|
||||||
memcpy(naya + startpos, r, newstrlen);
|
memcpy(naya + startpos, r, newstrlen);
|
||||||
memcpy(naya + startpos + newstrlen, v + i + 1, len - i + 1);
|
memcpy(naya + startpos + newstrlen, v + i + 1, len - i + 1);
|
||||||
|
|
||||||
delete[] v;
|
|
||||||
v = naya;
|
v = naya;
|
||||||
|
|
||||||
goto found;
|
goto found;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user