search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Memory leak on Daypilot on Modal window

Asked by B
6 years ago.

Dear Sir/madam

We are using latest Daypilot pro version. We are using Daypilot modal window in our application. Whenever we close the modal window it seems to be leaking.

I use IE Memery analyser.

When I was doing the memory analysis I am getting some leak saying "This node is not attached to the DOM".
The iFrame inside daypilot modal says "Disconnected node root". It leaks about 244 B.

I have uploaded sample screen shot.

Any help would be great.

Thanks
B

mvc
Answer posted by Dan Letecky [DayPilot]
6 years ago.

The upcoming version of DayPilot.Modal (2.8) will include a fix for this. You can also release the reference manually by calling "modal.iframe = null;" in onClosed event handler.

Note that if you reuse the DayPilot.Modal object it will be released automatically on the next showUrl() call.

Also, it looks like the DayPilot.Modal object remains in memory (you probably keep the reference somewhere). If you release the reference it will be cleared by the garbage collector including the internal iframe reference.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.