TheGreenPig / Apate

A BetterDiscord Plugin that allows End-to-End encryption and hiding messages in messages!
65 stars 17 forks source link

[Bug] Object URLs never cleared #1

Closed zerebos closed 3 years ago

zerebos commented 3 years ago

There are many calls to URL.createObjectURL() but no calls to URL.revokeObjectURL() which leads to a memory leak. As per MDN:

Each time you call createObjectURL(), a new object URL is created, even if you've already created one for the same object. Each of these must be released by calling URL.revokeObjectURL() when you no longer need them.

TheGreenPig commented 3 years ago

I was't quite sure where to close them again, but I did this now (version 1.0.6).