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
1=== modified file 'src/store/naive/loader_fast.cpp'
2--- src/store/naive/loader_fast.cpp 2012-06-28 04:14:03 +0000
3+++ src/store/naive/loader_fast.cpp 2012-07-04 13:37:21 +0000
4@@ -160,23 +160,23 @@
5 theBaseUri.~zstring();
6 theDocUri.~zstring();
7
8+ theOrdPath.init();
9+ theRootNode = NULL;
10+
11+ while(!theNodeStack.empty())
12+ {
13+ XmlNode* node = theNodeStack.top();
14+ theNodeStack.pop();
15+ if (node != NULL)
16+ node->destroy(true);
17+ }
18+
19 if (theTree != NULL)
20 {
21 delete theTree;
22 theTree = NULL;
23 }
24
25- theOrdPath.init();
26- theRootNode = NULL;
27-
28- while(!theNodeStack.empty())
29- {
30- XmlNode* node = theNodeStack.top();
31- theNodeStack.pop();
32- if (node != NULL)
33- node->destroy(true);
34- }
35-
36 thePathStack.clear();
37
38 #ifdef DATAGUIDE

Subscribers

People subscribed via source and target branches