javauis/mmapi_qt/volumekeys/src/cmmaforeground.cpp
changeset 50 023eef975703
parent 26 dc7c549001d5
equal deleted inserted replaced
49:35baca0e7a2e 50:023eef975703
    61      {
    61      {
    62          LOG( EJavaMMAPI, EInfo, "CMMAForeground::~CMMAForeground() : eikEnv RemoveForegroundObserver +");
    62          LOG( EJavaMMAPI, EInfo, "CMMAForeground::~CMMAForeground() : eikEnv RemoveForegroundObserver +");
    63          eikEnv->RemoveForegroundObserver(*this);
    63          eikEnv->RemoveForegroundObserver(*this);
    64          LOG( EJavaMMAPI, EInfo, "CMMAForeground::~CMMAForeground() : eikEnv RemoveForegroundObserver -");
    64          LOG( EJavaMMAPI, EInfo, "CMMAForeground::~CMMAForeground() : eikEnv RemoveForegroundObserver -");
    65      }
    65      }
    66     */
    66 
    67     if (iEventPoster && iDeleteRefEvent)
    67     if (iEventPoster && iDeleteRefEvent)
    68     {
    68     {
    69         iEventPoster->PostEvent(iDeleteRefEvent);
    69         iEventPoster->PostEvent(iDeleteRefEvent);
    70     }
    70     }
    71     else
    71     else
    72     {
    72     {
    73         delete iDeleteRefEvent;
    73         delete iDeleteRefEvent;
    74     }
    74     }*/
       
    75     //TODO MemoryLeak need to delete the above object.
    75     delete iForegroundEvent;
    76     delete iForegroundEvent;
    76     delete iActiveScheduler;
    77     delete iActiveScheduler;
    77     LOG(EJavaMMAPI, EInfo, "CMMAForeground::~CMMAForeground() - ");
    78     LOG(EJavaMMAPI, EInfo, "CMMAForeground::~CMMAForeground() - ");
    78 }
    79 }
    79 
    80