Built messagelib with this change, observed no crash when quitting KMail or closing a message viewer window. Without this change, the crash happens every time.
Build Akregator using the updated messagelib, observed correct operation and display of articles and pages.