Commit 6c178549 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

close the file descriptor if we fail to obtain the lock (bug #151767).

2005-04-25  Sven Neumann  <sven@gimp.org>

	* app/file/gimprecentlist.c (gimp_recent_list_add_item): close the
	file descriptor if we fail to obtain the lock (bug #151767).
parent 380b1703
2005-04-25 Sven Neumann <sven@gimp.org>
* app/file/gimprecentlist.c (gimp_recent_list_add_item): close the
file descriptor if we fail to obtain the lock (bug #151767).
2005-04-25 Sven Neumann <sven@gimp.org>
* app/plug-in/plug-in-proc-def.h: added a boolean flag to the
......
......@@ -582,6 +582,7 @@ gimp_recent_list_add_item (GimpRecentItem *item)
else
{
g_warning ("Failed to lock: %s", g_strerror (errno));
close (fd);
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment