diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-07-24 19:37:48 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-07-24 19:37:48 -0700 |
commit | 3b5c0ef0c2ee9c5f293f9ce590eb066381c8837c (patch) | |
tree | dd4140c2481e1afa0ed14cabc806e55cc223ab13 | |
parent | e03592489976efaea6be46297a81008ffcb3fcf4 (diff) |
Fixed memory leaks (fixed #241)
-rw-r--r-- | src/core/abstract/MCAddress.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/abstract/MCAddress.cc b/src/core/abstract/MCAddress.cc index dce52cff..ebfc8f0d 100644 --- a/src/core/abstract/MCAddress.cc +++ b/src/core/abstract/MCAddress.cc @@ -433,7 +433,7 @@ static Array * lep_address_list_from_lep_mailbox(struct mailimf_mailbox_list * m Array * result; clistiter * cur; - result = new Array(); + result = Array::array(); for(cur = clist_begin(mb_list->mb_list) ; cur != NULL ; cur = clist_next(cur)) { struct mailimf_mailbox * mb; Address * address; @@ -456,7 +456,7 @@ static Array * lep_address_list_from_lep_addr(struct mailimf_address_list * addr Array * result; clistiter * cur; - result = new Array(); + result = Array::array(); for(cur = clist_begin(addr_list->ad_list) ; cur != NULL ; cur = clist_next(cur)) { |