tng 2002/08/16 09:03:02
Modified: c/tests/DOM/DOMTest DTest.cpp
Log:
[Bug 11360] Release user data using handler.
Revision Changes Path
1.27 +8 -1 xml-xerces/c/tests/DOM/DOMTest/DTest.cpp
Index: DTest.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/tests/DOM/DOMTest/DTest.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- DTest.cpp 16 Aug 2002 13:49:56 -0000 1.26
+++ DTest.cpp 16 Aug 2002 16:03:02 -0000 1.27
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.27 2002/08/16 16:03:02 tng
+ * [Bug 11360] Release user data using handler.
+ *
* Revision 1.26 2002/08/16 13:49:56 tng
* [Bug 11360] Release user data using handler.
*
@@ -781,7 +784,11 @@
DOMTest::testDocumentFragmentNode = 0;
DOMTest::testNotationNode = 0;
- d->release();
+ // we couldn't really test the user data handler call as the userhandler is
already
+ // deleted when the release() is done, but still set it to test the code
internally
+ d->setUserData(tempStr, (void*) tempStr, &userhandler);
+ d->release();
+
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]