In the 'autorender' command, 'rectangle' objects are created for global species, reaction, and compartment styles in the 'addGlobalStyles' function. Then they're deleted in the 'setStyle(..., "default")' function that is executed later. This was a source of a memory leak, because the removed rectangle wasn't deleted. That's now fixed, but it's still true that a single function creates and then deletes a thing, which probably isn't the most efficient way it could have done that.
In the 'autorender' command, 'rectangle' objects are created for global species, reaction, and compartment styles in the 'addGlobalStyles' function. Then they're deleted in the 'setStyle(..., "default")' function that is executed later. This was a source of a memory leak, because the removed rectangle wasn't deleted. That's now fixed, but it's still true that a single function creates and then deletes a thing, which probably isn't the most efficient way it could have done that.