mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Try to fix sporadic access violation when destroying a non-results-query. Unlikely but probably fixes issue #1494 .
This commit is contained in:
@@ -778,7 +778,8 @@ end;
|
||||
destructor TMySQLQuery.Destroy;
|
||||
begin
|
||||
FreeAndNil(FColumnNames);
|
||||
mysql_free_result(FLastResult);
|
||||
if HasResult then
|
||||
mysql_free_result(FLastResult);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user