diff --git a/src/control/xojfile/LoadHandler.cpp b/src/control/xojfile/LoadHandler.cpp index 18fe777a..ebfa86ae 100644 --- a/src/control/xojfile/LoadHandler.cpp +++ b/src/control/xojfile/LoadHandler.cpp @@ -76,6 +76,7 @@ void LoadHandler::initAttributes() { this->image = nullptr; this->teximage = nullptr; this->text = nullptr; + this->pages.clear(); if (this->audioFiles) { g_hash_table_unref(this->audioFiles);