Why does Embarcadero call retain in this code?

  

I look the source code of TiOSLocationSensor of delphi, and I can see this :

FLocater: CLLocationManager;

constructor TiOSLocationSensor.Create(AManager: TSensorManager);
begin
inherited Create(AManager);

FLocater := TCLLocationManager.Create;
FLocater.retain;

end;

but I m asking, why they call FLocater.retain here? it’s seam to be unnecessary no ? or I miss something ?

Comments are closed.