mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 19:20:17 +08:00
Try to nuke some memory leaks.
This commit is contained in:
@ -332,6 +332,8 @@ begin
|
||||
s := trim(s);
|
||||
if length(s) > 0 then
|
||||
list.Add(s);
|
||||
// Avoid memory leak
|
||||
s := '';
|
||||
end;
|
||||
|
||||
|
||||
@ -464,6 +466,9 @@ begin
|
||||
|
||||
if start < i then
|
||||
addResult(result, copy(sql, start, i-start+1));
|
||||
|
||||
// Avoid memory leak
|
||||
sql := '';
|
||||
end;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user