Fix crash on async send in OL 2013
[gpgol.git] / src / windowmessages.cpp
index bf252a0..afb8197 100644 (file)
@@ -162,6 +162,7 @@ gpgol_window_proc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
               invoke_oom_method (mail->item (), "Send", NULL);
               log_debug ("%s:%s:  Send for %p completed.",
                          SRCNAME, __func__, mail);
+              mail->releaseCurrentItem();
               break;
             }
           case (BRING_TO_FRONT):