Mercurial > audlegacy-plugins
changeset 3106:a0628e5f3074
gio: fix FD leak
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 30 Apr 2009 12:35:54 -0500 |
parents | 1d42b759a2a9 |
children | 2a8eb3450ea4 |
files | src/gio/gio.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gio/gio.c Thu Apr 30 12:27:14 2009 -0500 +++ b/src/gio/gio.c Thu Apr 30 12:35:54 2009 -0500 @@ -94,6 +94,12 @@ { VFSGIOHandle *handle = (VFSGIOHandle *) file->handle; + if (handle->istream) + g_object_unref(handle->istream); + + if (handle->ostream) + g_object_unref(handle->ostream); + g_object_unref(handle->file); g_slice_free(VFSGIOHandle, handle);