diff --git a/src/qtgui/main.cpp b/src/qtgui/main.cpp index ebb6ba46..da6ac3cc 100644 --- a/src/qtgui/main.cpp +++ b/src/qtgui/main.cpp @@ -17,6 +17,7 @@ #include "autoconfig.h" #include +#include #include #include @@ -50,7 +51,9 @@ extern RclConfig *theconfig; std::mutex thetempfileslock; -static vector o_tempfiles; +// Use a list not a vector so that contained objects have stable +// addresses when extending. +static list o_tempfiles; /* Keep an array of temporary files for deletion at exit. It happens that we erase some of them before exiting (ie: when closing a preview tab), we don't reuse the array holes for now */