Reputation: 1513
Every time I use
GMGeoCode.Geocode(lAddress);
Where lAddress is an existing address found in a database, I get a memoryleak If I do everything else on the for except the GMGeoCode.Geocode(lAddress); the leak isn't there
Is there something that I should free after calling Geocode?
Upvotes: 1
Views: 322
Reputation: 1552
The 1.1.0 release don't have this bug fixed. You need to download the last version in SVN repository or change the destructor of TAddressComponentsList in unit GMGeoCode by this line with this:
destructor TAddressComponentsList.Destroy;
begin
if Assigned(FAddrComponents) then FreeAndNil(FAddrComponents);
inherited;
end;
Regards
Upvotes: 1