File aspell-iterator-after-erase.patch of Package aspell

--- lib/new_fmode.cpp
+++ lib/new_fmode.cpp
@@ -277,10 +277,13 @@
   }
 
   void FilterMode::MagicString::remExtension(const String & ext) {
-    for ( Vector<String>::iterator it = fileExtensions.begin() ;
-          it != fileExtensions.end() ; it++ ) {
+    Vector<String>::iterator it = fileExtensions.begin();
+    while (it != fileExtensions.end()) {
       if ( *it == ext ) {
-        fileExtensions.erase(it);
+        it = fileExtensions.erase(it);
+      }
+      else {
+        it++;
       }
     }
   }