Mercurial > audlegacy-plugins
comparison src/gio/gio.c @ 3106:a0628e5f3074
gio: fix FD leak
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 30 Apr 2009 12:35:54 -0500 |
parents | 1d42b759a2a9 |
children | d73418aa0db3 |
comparison
equal
deleted
inserted
replaced
3105:1d42b759a2a9 | 3106:a0628e5f3074 |
---|---|
92 | 92 |
93 if (file->handle) | 93 if (file->handle) |
94 { | 94 { |
95 VFSGIOHandle *handle = (VFSGIOHandle *) file->handle; | 95 VFSGIOHandle *handle = (VFSGIOHandle *) file->handle; |
96 | 96 |
97 if (handle->istream) | |
98 g_object_unref(handle->istream); | |
99 | |
100 if (handle->ostream) | |
101 g_object_unref(handle->ostream); | |
102 | |
97 g_object_unref(handle->file); | 103 g_object_unref(handle->file); |
98 g_slice_free(VFSGIOHandle, handle); | 104 g_slice_free(VFSGIOHandle, handle); |
99 | 105 |
100 file->handle = NULL; | 106 file->handle = NULL; |
101 } | 107 } |