From: SourceForge.net <no...@so...> - 2009-10-29 14:03:01
|
Bugs item #2888798, was opened at 2009-10-29 14:03 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2888798&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: wxJSON Group: Subversion TRUNK Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: [wxJSON ver. <= 1.0] bug in the wxJSONValue::UnRef() functio Initial Comment: I copy-and-paste the mail received from Bryan Ashby who discovered and fixed the bug: There is a bug in wxJSONValue::UnRef(): A missing "{" is causing m_refData to become NULL even if m_refCount is non-zero. Below is a snip of code with the fix to illustrate: if ( --m_refData->m_refCount == 0 ) { // fix: added "{" here delete m_refData; m_refData = NULL; } // need new closing "}" as well, of course The bug will be fixed in version 1.1 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2888798&group_id=51305 |