From: SourceForge.net <no...@so...> - 2009-09-14 11:38:05
|
Bugs item #2858530, was opened at 2009-09-14 11:38 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2858530&group_id=51305 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: wxsqlite3: wrong operator= Initial Comment: 1. wxSQLite3Database::operator=(const wxSQLite3Database& db) has resource leak. You must close m_db before assigning new value to one. 2.All operator=() do not perform self-assigning check, for example: wxSQLite3Database& wxSQLite3Database::operator=(const wxSQLite3Database& db) { if ( this == &db) { // ADD THIS CHECK FOR EVERY operator= return *this; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2858530&group_id=51305 |