From: <and...@us...> - 2008-01-18 14:43:03
|
Revision: 8150 http://plplot.svn.sourceforge.net/plplot/?rev=8150&view=rev Author: andrewross Date: 2008-01-18 06:43:06 -0800 (Fri, 18 Jan 2008) Log Message: ----------- Ensure output file is closed in plD_tidy_cairo - closes bug #1874660. Modified Paths: -------------- trunk/drivers/cairo.c Modified: trunk/drivers/cairo.c =================================================================== --- trunk/drivers/cairo.c 2008-01-18 12:28:13 UTC (rev 8149) +++ trunk/drivers/cairo.c 2008-01-18 14:43:06 UTC (rev 8150) @@ -279,6 +279,9 @@ // Free the cairo context and surface. cairo_destroy(aStream->cairoContext); cairo_surface_destroy(aStream->cairoSurface); + + if (pls->OutFile) + fclose(pls->OutFile); } //--------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |