Try to fix another unreproducible exception on older servers which fail to SHOW TABLES FROM information_schema. Probably fixes issue #1455 and issue #1439.

This commit is contained in:
Ansgar Becker
2009-11-11 20:48:00 +00:00
parent 66d80bdeab
commit f56b1ee76a

View File

@ -636,7 +636,8 @@ destructor TMySQLQuery.Destroy;
begin begin
inherited Destroy; inherited Destroy;
FreeAndNil(FColumnNames); FreeAndNil(FColumnNames);
mysql_free_result(FLastResult); if FLastResult <> nil then
mysql_free_result(FLastResult);
end; end;