[Win32] Plug handle leak, call CloseHandle().

2003-07-30  Tor Lillqvist  <tml@iki.fi>

	* app/plug-in/plug-in.c (plug_in_close): [Win32] Plug handle leak,
	call CloseHandle().
This commit is contained in:
Tor Lillqvist 2003-07-31 01:08:08 +00:00 committed by Tor Lillqvist
parent 117d73cea3
commit ac5dfb4774
3 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-07-30 Tor Lillqvist <tml@iki.fi>
* app/plug-in/plug-in.c (plug_in_close): [Win32] Plug handle leak,
call CloseHandle().
2003-07-30 Manish Singh <yosh@gimp.org>
* tools/pdbgen/app.pl: fixed UTF-8 reversed check.

View File

@ -508,8 +508,8 @@ plug_in_close (PlugIn *plug_in,
gboolean kill_it)
{
Gimp *gimp;
gint status;
#ifndef G_OS_WIN32
gint status;
struct timeval tv;
#endif
@ -570,6 +570,12 @@ plug_in_close (PlugIn *plug_in,
TerminateProcess ((HANDLE) plug_in->pid, 0);
}
}
/* FIXME: Wait for it like on Unix? */
/* Close handle which is no longer needed */
if (plug_in->pid)
CloseHandle ((HANDLE) plug_in->pid);
#endif
plug_in->pid = 0;

View File

@ -508,8 +508,8 @@ plug_in_close (PlugIn *plug_in,
gboolean kill_it)
{
Gimp *gimp;
gint status;
#ifndef G_OS_WIN32
gint status;
struct timeval tv;
#endif
@ -570,6 +570,12 @@ plug_in_close (PlugIn *plug_in,
TerminateProcess ((HANDLE) plug_in->pid, 0);
}
}
/* FIXME: Wait for it like on Unix? */
/* Close handle which is no longer needed */
if (plug_in->pid)
CloseHandle ((HANDLE) plug_in->pid);
#endif
plug_in->pid = 0;