Merge lp:~zorba-coders/zorba/bug-1020953 into lp:zorba

Proposed by Dennis Knochenwefel
Status: Merged
Approved by: Dennis Knochenwefel
Approved revision: 10912
Merged at revision: 10912
Proposed branch: lp:~zorba-coders/zorba/bug-1020953
Merge into: lp:zorba
Diff against target: 38 lines (+11/-11)
1 file modified
src/store/naive/loader_fast.cpp (+11/-11)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-1020953
Reviewer Review Type Date Requested Status
Ghislain Fourny Approve
Nicolae Brinza Approve
Review via email: mp+113400@code.launchpad.net

Commit message

fix for bug #1020953 (access of freed object)

Description of the change

fix for bug #1020953

To post a comment you must log in.
Revision history for this message
Nicolae Brinza (nbrinza) :
review: Approve
Revision history for this message
Ghislain Fourny (gislenius) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1020953-2012-07-04T15-27-03.895Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/store/naive/loader_fast.cpp'
--- src/store/naive/loader_fast.cpp 2012-06-28 04:14:03 +0000
+++ src/store/naive/loader_fast.cpp 2012-07-04 13:37:21 +0000
@@ -160,23 +160,23 @@
160 theBaseUri.~zstring();160 theBaseUri.~zstring();
161 theDocUri.~zstring();161 theDocUri.~zstring();
162162
163 theOrdPath.init();
164 theRootNode = NULL;
165
166 while(!theNodeStack.empty())
167 {
168 XmlNode* node = theNodeStack.top();
169 theNodeStack.pop();
170 if (node != NULL)
171 node->destroy(true);
172 }
173
163 if (theTree != NULL)174 if (theTree != NULL)
164 {175 {
165 delete theTree;176 delete theTree;
166 theTree = NULL;177 theTree = NULL;
167 }178 }
168179
169 theOrdPath.init();
170 theRootNode = NULL;
171
172 while(!theNodeStack.empty())
173 {
174 XmlNode* node = theNodeStack.top();
175 theNodeStack.pop();
176 if (node != NULL)
177 node->destroy(true);
178 }
179
180 thePathStack.clear();180 thePathStack.clear();
181181
182#ifdef DATAGUIDE182#ifdef DATAGUIDE

Subscribers

People subscribed via source and target branches