From d67b0305ab68bfe94aa734e60e6a7b581fe61a6f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 14 Apr 2013 18:42:20 +0200 Subject: [PATCH] pictureviewer: free formathandlers in destructor Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/833fb32197c61081ad3b2969ec25bba02ade85a0 Author: Stefan Seyfried Date: 2013-04-14 (Sun, 14 Apr 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/pictureviewer/pictureviewer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp index 13a61697b..cf1ca2b65 100644 --- a/src/driver/pictureviewer/pictureviewer.cpp +++ b/src/driver/pictureviewer/pictureviewer.cpp @@ -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)