(iOS) Bug fix: Small memory leak in iOS
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.1.2-beta-20171114-1126" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.1.2-beta-20171115-1504" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
src/ios/GoogleMaps/PluginMarker.m
src/ios/GoogleMaps/PluginMarker.m
NSURLSession *session = [NSURLSession sessionWithConfiguration:sessionConfiguration];
NSURLSessionDataTask *getTask = [session dataTaskWithRequest:req
completionHandler:^(NSData *data, NSURLResponse *res, NSError *error) {
+ [session finishTasksAndInvalidate];
if ( !error ) {
UIImage *image = [UIImage imageWithData:data];
[[UIImageCache sharedInstance] cacheImage:image forKey:uniqueKey];

MODIFY
src/ios/GoogleMaps/PluginTileProvider.m
src/ios/GoogleMaps/PluginTileProvider.m
@@ -286,6 +286,7 @@ NSDictionary *debugAttributes;
NSURLSession *session = [NSURLSession sessionWithConfiguration:sessionConfiguration];
NSURLSessionDataTask *getTask = [session dataTaskWithRequest:req
completionHandler:^(NSData *data, NSURLResponse *res, NSError *error) {
+ [session finishTasksAndInvalidate];
if ( !error ) {
[self.imgCache setObject:data forKey:uniqueKey cost:data.length];
UIImage *image = [UIImage imageWithData:data];

(iOS) Bug fix: Small memory leak in iOS #1893