diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:01:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:10:28 +0300 |
commit | f820365eed7e956e67e6122a8a5ab529e7df9474 (patch) | |
tree | 9ee43bae2f7cafa38ab0cf018b8dbaf49d531f38 /src/gui/windows/mailedit.cpp | |
parent | 4b0f30b1e1879cee6d65394d826bba21eca6c40b (diff) | |
download | manaplus-f820365eed7e956e67e6122a8a5ab529e7df9474.tar.gz manaplus-f820365eed7e956e67e6122a8a5ab529e7df9474.tar.bz2 manaplus-f820365eed7e956e67e6122a8a5ab529e7df9474.tar.xz manaplus-f820365eed7e956e67e6122a8a5ab529e7df9474.zip |
Fix time in mail view window.
Also fix possible leaks in mail windows.
Diffstat (limited to 'src/gui/windows/mailedit.cpp')
-rw-r--r-- | src/gui/windows/mailedit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/mailedit.cpp b/src/gui/windows/mailedit.cpp index ba3972992..5bb669b72 100644 --- a/src/gui/windows/mailedit.cpp +++ b/src/gui/windows/mailedit.cpp @@ -40,6 +40,7 @@ #include "gui/widgets/scrollarea.h" #include "gui/widgets/textfield.h" +#include "utils/delete2.h" #include "utils/gettext.h" #include "utils/stringutils.h" @@ -106,7 +107,6 @@ MailEdit::MailEdit() : placer(1, 1, mSubjectField, 3); placer(0, 2, mMoneyLabel); placer(1, 2, mMoneyField, 3); -// placer(0, 3, mItemScrollArea, 3); placer(0, 3, mItemLabel); placer(1, 3, mItemScrollArea, 2, 2); placer(3, 4, mAddButton, 1); @@ -123,6 +123,7 @@ MailEdit::MailEdit() : MailEdit::~MailEdit() { mailEditWindow = nullptr; + delete2(mInventory); } void MailEdit::action(const ActionEvent &event) |