SimpleSmtp_SSL_QT5 icon indicating copy to clipboard operation
SimpleSmtp_SSL_QT5 copied to clipboard

Memory leak on allocation Smtp at every sendMail() call.

Open travnick opened this issue 7 years ago • 1 comments

There is no delete on smtp anywhere. If it has to be heap allocated it should be a smart pointer anyway.

https://github.com/xcoder123/SimpleSmtp_SSL_QT5/blob/a15541e38c61d70af18bc6fe5002310909dcd95c/smtp_attachements/mainwindow.cpp#L35

travnick avatar Aug 10 '17 12:08 travnick

it has to be heap allocated? Smtp smtp; // does this work?

opengpu avatar Jun 10 '19 08:06 opengpu