evince r3574 - in trunk: . backend/tiff
- From: nshmyrev svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3574 - in trunk: . backend/tiff
- Date: Tue, 7 Apr 2009 22:16:47 +0000 (UTC)
Author: nshmyrev
Date: Tue Apr 7 22:16:47 2009
New Revision: 3574
URL: http://svn.gnome.org/viewvc/evince?rev=3574&view=rev
Log:
2009-04-08 Nickolay V. Shmyrev <nshmyrev yandex ru>
* backend/tiff/tiff2ps.c (tiff2ps_context_new):
Fixes memory leak. Bug #578285.
Modified:
trunk/ChangeLog
trunk/backend/tiff/tiff2ps.c
Modified: trunk/backend/tiff/tiff2ps.c
==============================================================================
--- trunk/backend/tiff/tiff2ps.c (original)
+++ trunk/backend/tiff/tiff2ps.c Tue Apr 7 22:16:47 2009
@@ -173,8 +173,11 @@
ctx = g_new0(TIFF2PSContext, 1);
ctx->filename = g_strdup(filename);
ctx->fd = g_fopen(ctx->filename, "w");
- if (ctx->fd == NULL)
+ if (ctx->fd == NULL) {
+ g_free (filename);
+ g_free (ctx);
return NULL;
+ }
ctx->interpolate = TRUE; /* interpolate level2 image */
ctx->PSavoiddeadzone = TRUE; /* enable avoiding printer deadzone */
return ctx;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]