still leak picture when pic->m_outputFlag == false. No elegant solution before we add smart pointer to decoder. Suggest fix this later.