Lei Zhang : sane.ds: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Fri Nov 9 07:44:25 CST 2007


Module: wine
Branch: master
Commit: 124f2aa27e45f4d6fe780ab172010fa27d8aa5cd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=124f2aa27e45f4d6fe780ab172010fa27d8aa5cd

Author: Lei Zhang <thestig at google.com>
Date:   Fri Nov  9 02:01:59 2007 -0800

sane.ds: Fix a memory leak.

---

 dlls/sane.ds/ui.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/sane.ds/ui.c b/dlls/sane.ds/ui.c
index 517f1fb..6763240 100644
--- a/dlls/sane.ds/ui.c
+++ b/dlls/sane.ds/ui.c
@@ -597,6 +597,7 @@ BOOL DoScannerUI(void)
         HeapFree(GetProcessHeap(),0,(LPBYTE)psp[index].u.pResource);
         HeapFree(GetProcessHeap(),0,(LPBYTE)psp[index].pszTitle);
     }
+    HeapFree(GetProcessHeap(),0,szCaption);
     
     if (psrc == IDOK)
         return TRUE;




More information about the wine-cvs mailing list