Details
-
Bug
-
Resolution: Done
-
P2: Important
-
1.0.0
-
None
-
c84a6d828bcb7f66d1ac06e1a7a84c5a8ba9cec4
Description
1) In configFromConnectionMethodL and updateConfigurationsL methods Qt class is pushed to the cleanup stack (only Symbian / CBased classes should be pushed to the cleanup stack)
QNetworkConfigurationPrivate* cpPriv = new QNetworkConfigurationPrivate();
CleanupStack::PushL(cpPriv);
2) In configFromConnectionMethodL exception in QString::fromUtf16 method call causes memory leak. QT_TRYCATCH_LEAVING macro should be used to convert the Qt code to leaving one so cleanup stack would work correctly.
CleanupStack::PushL(pName);
cpPriv->mappingName = QString::fromUtf16(pName->Ptr(),pName->Length());
CleanupStack::PopAndDestroy(pName);