Use g_unlink. (#421990, Morten Welinder)

2007-04-30  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkprintjob.c (gtk_print_job_get_surface): Use
        g_unlink.  (#421990, Morten Welinder)



svn path=/trunk/; revision=17724
This commit is contained in:
Matthias Clasen 2007-04-30 04:55:25 +00:00 committed by Matthias Clasen
parent a788ef97a4
commit a8698a24c7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintjob.c (gtk_print_job_get_surface): Use
g_unlink. (#421990, Morten Welinder)
2007-04-29 Matthias Clasen <mclasen@redhat.com>
Fix some issues with reference handling in the printing

View File

@ -486,7 +486,7 @@ gtk_print_job_get_surface (GtkPrintJob *job,
/* If we are debugging printing don't delete the tmp files */
if (!(gtk_debug_flags & GTK_DEBUG_PRINTING))
#endif /* G_ENABLE_DEBUG */
unlink (filename);
g_unlink (filename);
g_free (filename);
paper_size = gtk_page_setup_get_paper_size (priv->page_setup);