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 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users