=== modified file 'eeschema/class_libentry.cpp'
--- eeschema/class_libentry.cpp	2011-02-28 18:36:19 +0000
+++ eeschema/class_libentry.cpp	2011-03-08 22:09:19 +0000
@@ -1031,8 +1031,8 @@
             continue;
         }
 
-        // 'it' is not advanced, but should point to next in list after erase()
-        drawings.erase( it );
+        // erase() invalidates the iterator and returns one at the next element.
+        it = drawings.erase( it );
     }
 }
 

