evince r3439 - in trunk: . libdocument
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3439 - in trunk: . libdocument
- Date: Sun, 15 Feb 2009 13:51:36 +0000 (UTC)
Author: chpe
Date: Sun Feb 15 13:51:36 2009
New Revision: 3439
URL: http://svn.gnome.org/viewvc/evince?rev=3439&view=rev
Log:
* libdocument/ev-file-helpers.c: (get_mime_type_from_data): Don't leak
the input stream.
Modified:
trunk/ChangeLog
trunk/libdocument/ev-file-helpers.c
Modified: trunk/libdocument/ev-file-helpers.c
==============================================================================
--- trunk/libdocument/ev-file-helpers.c (original)
+++ trunk/libdocument/ev-file-helpers.c Sun Feb 15 13:51:36 2009
@@ -252,11 +252,14 @@
size_read = g_input_stream_read (G_INPUT_STREAM (input_stream),
buffer, sizeof (buffer), NULL, error);
if (size_read == -1) {
+ g_object_unref (input_stream);
g_object_unref (file);
return NULL;
}
retval = g_input_stream_close (G_INPUT_STREAM (input_stream), NULL, error);
+
+ g_object_unref (input_stream);
g_object_unref (file);
if (!retval)
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]