[ros-diffs] [gedmurphy] 22136: fix possible memory leak
gedmurphy at svn.reactos.org
gedmurphy at svn.reactos.org
Thu Jun 1 00:39:51 CEST 2006
- Previous message: [ros-diffs] [fireball] 22135: - Small update of the auditing doc - Test of new ViewVC post-commit hook
- Next message: [ros-diffs] [amunger] 22137: Merged crt and string fixes from trunk, per GreatLord. Revisions: 21936, 21937*, 21939-21941, 21963-21965, 21967, 21969-21970, 21973-21974, 21976, 21987, 22011-22013, 22019-22023, 22027, 22060-22062, 22069-22073, 22075, 22079, 22105. Fixes the calc bug and supposedly some other things. ; 0) *partial
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: gedmurphy
Date: Thu Jun 1 02:39:51 2006
New Revision: 22136
URL: http://svn.reactos.ru/svn/reactos?rev=22136&view=rev
Log:
fix possible memory leak
Modified:
trunk/reactos/base/applications/screenshot/screenshot.c
Modified: trunk/reactos/base/applications/screenshot/screenshot.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/screenshot/screenshot.c?rev=22136&r1=22135&r2=22136&view=diff
==============================================================================
--- trunk/reactos/base/applications/screenshot/screenshot.c (original)
+++ trunk/reactos/base/applications/screenshot/screenshot.c Thu Jun 1 02:39:51 2006
@@ -347,6 +347,8 @@
pScrSht = HeapAlloc(GetProcessHeap(),
0,
sizeof(SCREENSHOT));
+ if (pScrSht == NULL)
+ return -1;
if (bFullScreen)
{
@@ -358,7 +360,13 @@
}
if (pScrSht->hSelf == NULL)
+ {
+ HeapFree(GetProcessHeap(),
+ 0,
+ pScrSht);
+
return -1;
+ }
if (CaptureScreen(pScrSht))
{
- Previous message: [ros-diffs] [fireball] 22135: - Small update of the auditing doc - Test of new ViewVC post-commit hook
- Next message: [ros-diffs] [amunger] 22137: Merged crt and string fixes from trunk, per GreatLord. Revisions: 21936, 21937*, 21939-21941, 21963-21965, 21967, 21969-21970, 21973-21974, 21976, 21987, 22011-22013, 22019-22023, 22027, 22060-22062, 22069-22073, 22075, 22079, 22105. Fixes the calc bug and supposedly some other things. ; 0) *partial
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Ros-diffs
mailing list