mirror of https://github.com/GNOME/gimp.git
[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:
parent
117d73cea3
commit
ac5dfb4774
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue