SimpleSmtp_SSL_QT5
SimpleSmtp_SSL_QT5 copied to clipboard
Memory leak on allocation Smtp at every sendMail() call.
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
it has to be heap allocated? Smtp smtp; // does this work?