[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)
committerbshsqa <32317749+bshsqa@users.noreply.github.com>
Mon, 11 Dec 2023 06:49:58 +0000 (15:49 +0900)
commit16963f39499d38aa88bdf3e993c24d93345a86f9
tree23cb7a070dcb0c08c1a53abb1375affe35642b02
parent0e399da6fd06eace2f6c2ddf70590e963ecd9248
[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