More memory clean-ups
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2901 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8380534b1d
commit
41808c26be
7 changed files with 48 additions and 9 deletions
|
@ -181,7 +181,8 @@ class SortedStringList
|
|||
int num=gr.getlen()/sizeof(T);
|
||||
|
||||
for (int i=0; i<num; i++) {
|
||||
free(s[i].name);
|
||||
if (s[i].name)
|
||||
free(s[i].name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue