Parcourir la source

Fix for deleting mFileNames values in Reset

Brian Fiete il y a 4 ans
Parent
commit
10f175b0c5
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      BeefLibs/corlib/src/IO/OpenFileDialog.bf

+ 2 - 1
BeefLibs/corlib/src/IO/OpenFileDialog.bf

@@ -119,7 +119,8 @@ namespace System.IO
 			DeleteAndNullify!(mTitle);
 			DeleteAndNullify!(mTitle);
 			DeleteAndNullify!(mInitialDir);
 			DeleteAndNullify!(mInitialDir);
 			DeleteAndNullify!(mDefaultExt);
 			DeleteAndNullify!(mDefaultExt);
-			DeleteAndNullify!(mFileNames);
+			DeleteContainerAndItems!(mFileNames);
+			mFileNames = null;
 			DeleteAndNullify!(mFilter);
 			DeleteAndNullify!(mFilter);
 			mFilterIndex = 1;
 			mFilterIndex = 1;
 			mSupportMultiDottedExtensions = false;
 			mSupportMultiDottedExtensions = false;