[NUI] Make we flush DisposeQueue before app start
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 11 Dec 2023 03:09:39 +0000 (12:09 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Wed, 13 Dec 2023 01:43:33 +0000 (10:43 +0900)
commit4eb055db9b2bcd4e89352ba7aa68fd2f5b4043e9
treee604e191199788925607e55d891a02beda1bf4da
parent2b2dddb521daf89061b1457fcd5d94a2425c6631
[NUI] Make we flush DisposeQueue before app start

If we don't call DisposeQueue.Instance.Initialize(), it might not flush
the dispose queue.

Before #5806 and until currently, we didn't allow to call ProcessDisposables()
before Initialize(). It might occure memory leak if app try to create & dispose
unlimitly before Application start.

To make ensure it, let we make ProcessDisposables() API can be called even if
DisposeQueue is not initialized.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Common/DisposeQueue.cs
src/Tizen.NUI/src/internal/Common/ProcessorController.cs