Change-Id: If8e6346369733a7e763f6e3b9aba9bd4b0559e2e
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
if (!CMediaContentDbUpdateListener::Create())
goto error;
+
if (!CUsbConnectionListener::Create())
- goto error;
+ _DBG("UsbConnectionListener creation failed");
if (!m_DrawItems())
goto error;
ASSERT(m);
CMediaContentDbUpdateListener::Destroy();
- CUsbConnectionListener::Destroy();
+ if (CUsbConnectionListener::FlagCreate())
+ CUsbConnectionListener::Destroy();
m->pMediadata->DestroyMediaList();