evince r3456 - in trunk: . backend/pdf
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3456 - in trunk: . backend/pdf
- Date: Sun, 15 Feb 2009 13:53:13 +0000 (UTC)
Author: chpe
Date: Sun Feb 15 13:53:13 2009
New Revision: 3456
URL: http://svn.gnome.org/viewvc/evince?rev=3456&view=rev
Log:
* backend/pdf/ev-poppler.cc: Plug a mem leak.
Modified:
trunk/ChangeLog
trunk/backend/pdf/ev-poppler.cc
Modified: trunk/backend/pdf/ev-poppler.cc
==============================================================================
--- trunk/backend/pdf/ev-poppler.cc (original)
+++ trunk/backend/pdf/ev-poppler.cc Sun Feb 15 13:53:13 2009
@@ -228,6 +228,7 @@
convert_error (GError *poppler_error,
GError **error)
{
+ g_return_if_fail (poppler_error != NULL);
if (poppler_error == NULL)
return;
@@ -243,6 +244,8 @@
EV_DOCUMENT_ERROR,
code,
poppler_error->message);
+
+ g_error_free (poppler_error);
} else {
g_propagate_error (error, poppler_error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]