2009-04-08 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* backend/tiff/tiff2ps.c (tiff2ps_context_new):
Fixes memory leak. Bug #578285.
svn path=/branches/gnome-2-26/; revision=3576
+2009-04-08 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * backend/tiff/tiff2ps.c (tiff2ps_context_new):
+
+ Fixes memory leak. Bug #578285.
+
2009-04-01 Christian Persch <chpe@gnome.org>
* data/evince.desktop.in.in: Direct bug-buddy bugs to the
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 (ctx->filename);
+ g_free (ctx);
return NULL;
+ }
ctx->interpolate = TRUE; /* interpolate level2 image */
ctx->PSavoiddeadzone = TRUE; /* enable avoiding printer deadzone */
return ctx;