소스 검색

Explicitly dispose old TreeView instances in UICatalog scenario (#1749)

Fixes #1742
Thomas Nind 3 년 전
부모
커밋
286fec7990
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      UICatalog/Scenarios/TreeUseCases.cs

+ 3 - 0
UICatalog/Scenarios/TreeUseCases.cs

@@ -75,6 +75,7 @@ namespace UICatalog.Scenarios {
 
 			if (currentTree != null) {
 				Win.Remove (currentTree);
+				currentTree.Dispose ();
 			}
 
 
@@ -148,6 +149,7 @@ namespace UICatalog.Scenarios {
 
 			if (currentTree != null) {
 				Win.Remove (currentTree);
+				currentTree.Dispose ();
 			}
 
 
@@ -180,6 +182,7 @@ namespace UICatalog.Scenarios {
 		{
 			if (currentTree != null) {
 				Win.Remove (currentTree);
+				currentTree.Dispose ();
 			}