fix memory leak

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2070 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: df378158ca
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-01-20 (Fri, 20 Jan 2012)

Origin message was:
------------------
-fix memory leak

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2070 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-01-20 17:15:04 +00:00
parent bd2ae2da5c
commit e0941bd58a

View File

@@ -197,6 +197,7 @@ bool CScreenShot::SavePng()
{
printf("CScreenShot::SavePng: %s save error\n", filename.c_str());
png_destroy_write_struct(&png_ptr, &info_ptr);
free(row_pointers);
fclose(fd);
return false;
}