GNOME Bugzilla – Bug 312803
crash on print to file
Last modified: 2005-09-22 19:28:44 UTC
+ Trace 62264
Re-assigning to gnome-print.
unique stack trace.
Created attachment 51453 [details] [review] proposed patch Don't fclose(NULL), it'll crash. There's more strange code in gnome_print_transport_real_print_file: in case gnome_print_transport_write fails, it bails out without closing the print transport with gnome_print_transport_close; couldn't that leak resources potentially associated with the print transport? Anyway I don't know enough about that code, so only fixing the obvious problem with fclose.
Thanks for the patch. I've also fixed the oddity of returning a byte count as a status.