From df378158ca6febdc687695a89fcc4520edcba899 Mon Sep 17 00:00:00 2001 From: satbaby 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 --- 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; }