Put bitmap reference to the icon variable. The bitmap reference will be released in the `clear` method.
MODIFY
src/android/plugin/google/maps/PluginMarker.java
src/android/plugin/google/maps/PluginMarker.java
@@ -959,6 +959,8 @@ public class PluginMarker extends MyPlugin implements MyPluginInterface {
if (image == null) {
return null;
}
+ icons.add(image);
+
Boolean isResized = false;
if (iconProperty.containsKey("size")) {
Object size = iconProperty.get("size");

Put bitmap reference to the icon variable. The bitmap reference will be released in the `clear` method.