git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
8c4e5b8
Branches
Tags
master
keks-overlay.git
net-im
centericq
files
centericq-4.21.0-memory-handling.diff
A keks * initial commit
Lars Strojny
commited
8c4e5b8
at 2006-12-17 11:28:02
centericq-4.21.0-memory-handling.diff
Blame
History
Raw
--- centericq-4.21.0.orig/src/icqface.cc +++ centericq-4.21.0/src/icqface.cc @@ -2003,7 +2003,7 @@ mvaddchnstr(i-1, sizeWArea.x1+1, logline, sizeWArea.x2-sizeWArea.x1); } - delete logline; + delete[] logline; if(text.size() > sizeWArea.x2-sizeWArea.x1-2) text.resize(sizeWArea.x2-sizeWArea.x1-2); mvhline(LINES-3, sizeWArea.x1+2, ' ', sizeWArea.x2-sizeWArea.x1-2); only in patch2: unchanged: --- centericq-4.21.0.orig/kkstrtext-0.1/kkstrtext.cc +++ centericq-4.21.0/kkstrtext-0.1/kkstrtext.cc @@ -907,8 +907,8 @@ r += soutbuf; text.erase(0, text.size()-inleft); - delete soutbuf; - delete sinbuf; + delete[] soutbuf; + free(sinbuf); if(res == -1 && errno != EILSEQ) break;