diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-04-29 04:58:20 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-04-29 04:58:20 +0000 |
commit | 6f8d92f369dd835e22e4f869d91b51d6b93f9a4d (patch) | |
tree | 81e631b45e9bd9f7bd09360236b648b4031e58b8 /gtk/gtkprintjob.c | |
parent | a59a3150506f19b79e428fa160c82b0bfc86b2bc (diff) | |
download | gtk+-6f8d92f369dd835e22e4f869d91b51d6b93f9a4d.tar.gz |
Fix a small memory leak. (#403251, Felix Riemann)
2007-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a
small memory leak. (#403251, Felix Riemann)
svn path=/trunk/; revision=17693
Diffstat (limited to 'gtk/gtkprintjob.c')
-rw-r--r-- | gtk/gtkprintjob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprintjob.c b/gtk/gtkprintjob.c index 0ff17f6805..c3fc27a69c 100644 --- a/gtk/gtkprintjob.c +++ b/gtk/gtkprintjob.c @@ -475,6 +475,7 @@ gtk_print_job_get_surface (GtkPrintJob *job, &tmp_error); if (fd == -1) { + g_free (filename); g_propagate_error (error, tmp_error); return NULL; } @@ -486,6 +487,7 @@ gtk_print_job_get_surface (GtkPrintJob *job, if (!(gtk_debug_flags & GTK_DEBUG_PRINTING)) #endif /* G_ENABLE_DEBUG */ unlink (filename); + g_free (filename); paper_size = gtk_page_setup_get_paper_size (priv->page_setup); width = gtk_paper_size_get_width (paper_size, GTK_UNIT_POINTS); |