From e0941bd58a4d1ed5899b7fa073550a40aac37559 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 20 Jan 2012 17:15:04 +0000 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/df378158ca6febdc687695a89fcc4520edcba899 Author: Jacek Jendrzej 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 --- src/driver/screenshot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/driver/screenshot.cpp b/src/driver/screenshot.cpp index c91ddd28d..35b6aa062 100644 --- a/src/driver/screenshot.cpp +++ b/src/driver/screenshot.cpp @@ -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; }