diff -r 22cc52eade9b -r 1eef62f5c541 phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp --- a/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp Fri Aug 06 13:16:44 2010 +0300 +++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp Mon Aug 23 15:42:12 2010 +0300 @@ -50,7 +50,7 @@ HbDataForm *form = qobject_cast(widget()); if (form) { - HbDataFormModel *model = new HbDataFormModel; + HbDataFormModel *model = new HbDataFormModel(form); form->setHeading(hbTrId("txt_phone_subhead_telephone")); // Create and initialize plugin's item data helper m_helper = initializeItemDataHelper(); @@ -135,6 +135,7 @@ CpTelephonyPluginView::~CpTelephonyPluginView() { DPRINT << ": IN"; + qDeleteAll(m_plugins); delete m_helper; DPRINT << ": OUT"; } @@ -152,6 +153,7 @@ try { p = CpPluginLoader::loadCpPluginInterface(plugin); if (p && m_helper) { + m_plugins.append(p); items = p->createSettingFormItemData(*m_helper); } } catch(...) {