diff options
-rw-r--r-- | Swiften/MUC/MUCBookmarkManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/MUC/MUCBookmarkManager.cpp b/Swiften/MUC/MUCBookmarkManager.cpp index cc1c8d6..77921e9 100644 --- a/Swiften/MUC/MUCBookmarkManager.cpp +++ b/Swiften/MUC/MUCBookmarkManager.cpp @@ -88,6 +88,9 @@ void MUCBookmarkManager::removeBookmark(const MUCBookmark& bookmark) { } void MUCBookmarkManager::flush() { + if (!storage) { + storage = boost::shared_ptr<Storage>(new Storage()); + } // Update the storage element storage->clearRooms(); foreach(const MUCBookmark& bookmark, bookmarks_) { |