--- gigedit/trunk/src/gigedit/mainwindow.cpp 2014/07/05 19:43:14 2664 +++ gigedit/trunk/src/gigedit/mainwindow.cpp 2014/07/07 15:01:01 2666 @@ -2854,7 +2854,7 @@ // just in case a new sample is added later with exactly the same memory // address, which would lead to incorrect refcount if not deleted here for (std::list::const_iterator it = samples.begin(); - it != samples.end(); it != samples.end()) + it != samples.end(); ++it) { sample_ref_count.erase(*it); }