if (__pFirstPaneParent)
{
- if (__pFirstPane)
- {
- __pFirstPaneParent->DetachChild(*__pFirstPane);
- }
-
DetachChild(*__pFirstPaneParent);
delete __pFirstPaneParent;
if (__pSecondPaneParent)
{
- if (__pSecondPane)
- {
- __pSecondPaneParent->DetachChild(*__pSecondPane);
- }
-
DetachChild(*__pSecondPaneParent);
delete __pSecondPaneParent;
__pDividerVisualElement = null;
}
+ if (__pFirstPaneParent)
+ {
+ DetachChild(*__pFirstPaneParent);
+
+ delete __pFirstPaneParent;
+ __pFirstPaneParent = null;
+ }
+
+ if (__pSecondPaneParent)
+ {
+ DetachChild(*__pSecondPaneParent);
+
+ delete __pSecondPaneParent;
+ __pSecondPaneParent = null;
+ }
+
ClearLastResult();
}