[NUI] Access managed fields only when explicit view disposal
authorJiyun Yang <ji.yang@samsung.com>
Fri, 6 Dec 2024 05:48:36 +0000 (14:48 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Tue, 10 Dec 2024 06:00:29 +0000 (15:00 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs

index 95b0b85131a5dec5c6c9e2760d252ea440b056eb..2a0c41fe5b55b752a5439280d4471635f1600db7 100755 (executable)
@@ -1469,14 +1469,14 @@ namespace Tizen.NUI.BaseComponents
                     heightConstraint.Remove();
                     heightConstraint.Dispose();
                 }
+
+                DisConnectFromSignals();
             }
 
             //Release your own unmanaged resources here.
             //You should not access any managed member here except static instance.
             //because the execution order of Finalizes is non-deterministic.
 
-            DisConnectFromSignals();
-
             backgroundExtraDataUpdatedFlag = BackgroundExtraDataUpdatedFlag.None;
 
             LayoutCount = 0;