If you have code structured like the following,
ServiceAccountantManager leaks memory due to retaining the Service in
its serviceUsers map:

AdWordsUser user = getUser();
AdGroupCriterionServiceInterface criterionSvc =
user.getService(AdWordsService.V200909.ADGROUP_CRITERION_SERVICE);
criterionSvc.mutate(updates);
return;

The only way to prevent this is to explicitly call clear or remove the
mapping in ServiceAccountantManager. This should be unnecessary
because the serviceUsers map is not required to be populated. The
latest client library update added a flag autoCreateAccountant to
control creating ServiceAccounts, but we also need a similar flag for
tracking User/Service mappings.

Maybe I'm missing something here but we shouldn't have to explicitly
cleanup mappings that aren't necessary to be created in the 1st place.
Am I right?

Thanks,

Joel

-- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-...@googlegroups.com.
To unsubscribe from this group, send email to 
adwords-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en.

Reply via email to