pictureviewer: free formathandlers in destructor

This commit is contained in:
Stefan Seyfried
2013-04-14 18:42:20 +02:00
committed by [CST] Focus
parent 24a61bddd6
commit 4f31b4e779

View File

@@ -446,6 +446,12 @@ void CPictureViewer::Cleanup ()
free (m_CurrentPic_Buffer);
m_CurrentPic_Buffer = NULL;
}
CFormathandler *fh = fh_root;
while (fh) {
CFormathandler *tmp = fh->next;
free(fh);
fh = tmp;
}
}
void CPictureViewer::getSize(const char* name, int* width, int *height)