[easytag] Fix GIOStream leak when checking for buggy id3lib
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix GIOStream leak when checking for buggy id3lib
- Date: Fri, 24 Oct 2014 23:00:41 +0000 (UTC)
commit 3bd1bc5c24bcf2e823c3a66506a1da21b58a97c8
Author: David King <amigadave amigadave com>
Date: Fri Oct 24 23:59:25 2014 +0100
Fix GIOStream leak when checking for buggy id3lib
src/tags/id3_tag.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tags/id3_tag.c b/src/tags/id3_tag.c
index 6c92bb5..e3c5b0a 100644
--- a/src/tags/id3_tag.c
+++ b/src/tags/id3_tag.c
@@ -1470,13 +1470,13 @@ id3tag_check_if_id3lib_is_buggy (GError **error)
" bytes of data were written", bytes_written, sizeof (tmp));
g_object_unref (file);
- g_output_stream_close (G_OUTPUT_STREAM (ostream), NULL, NULL);
+ g_object_unref (iostream);
return FALSE;
}
g_output_stream_close (G_OUTPUT_STREAM (ostream), NULL, NULL);
- g_object_unref (ostream);
+ g_object_unref (iostream);
/* Save state of switches as we must force to Unicode before writing.
* FIXME! */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]