Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Eval JS doesn't realease Interfaces

Post Reply
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Eval JS doesn't realease Interfaces

Post by salvadordf »

Hi,

Delphi releases all interfaces automatically when they are out of scope. In fact, they are released even before the final "end" that marks the last line of that procedure.

According to the documentation, interfaces are released when the last reference to them goes out of scope :
http://docwiki.embarcadero.com/RADStudi ... References

pV8Context is a local interface in that procedure and it will be released automatically right after the pV8Context.Exit call.
Post Reply