equal
deleted
inserted
replaced
57 |
57 |
58 // --------------------------------------------------------------------------- |
58 // --------------------------------------------------------------------------- |
59 // UnSet global state for dll |
59 // UnSet global state for dll |
60 // --------------------------------------------------------------------------- |
60 // --------------------------------------------------------------------------- |
61 // |
61 // |
62 void XmlSecUnsetTlsD( void* aGlobalState ) |
62 void XmlSecUnsetTlsDL( void* aGlobalState ) |
63 { |
63 { |
64 delete aGlobalState; |
64 CleanupStack::PushL(aGlobalState); |
|
65 CleanupStack::PopAndDestroy(aGlobalState); |
65 Dll::SetTls( NULL ); |
66 Dll::SetTls( NULL ); |
66 } |
67 } |
67 |
68 |
68 // --------------------------------------------------------------------------- |
69 // --------------------------------------------------------------------------- |
69 // Initialize wrapper |
70 // Initialize wrapper |
77 { |
78 { |
78 gs = XmlSecSetTlsL(); |
79 gs = XmlSecSetTlsL(); |
79 } |
80 } |
80 if(gs->iUserCount == 0) |
81 if(gs->iUserCount == 0) |
81 { |
82 { |
82 CleanupStack::PushL( TCleanupItem( XmlSecUnsetTlsD, gs ) ); |
83 CleanupStack::PushL( TCleanupItem( XmlSecUnsetTlsDL, gs ) ); |
83 XmlEngineAttachL(); |
84 XmlEngineAttachL(); |
84 |
85 |
85 RXmlEngDOMImplementation dom; |
86 RXmlEngDOMImplementation dom; |
86 dom.OpenL(); |
87 dom.OpenL(); |
87 gs->iDOMImpl = &dom; |
88 gs->iDOMImpl = &dom; |