GNOME Bugzilla – Bug 668968
Memory leak when parsing a brush fails
Last modified: 2012-01-30 12:58:53 UTC
Created attachment 206369 [details] [review] add error handler to brush GMarkupParser A GXPSBrush struct is leaked when parsing fails for a child of a XXX.Fill or XXX.Stroke element. Example: <Path> <Path.Fill> <invalid /> </Path.Fill> </Path> Parsing is aborted when invalid data is encountered and cleanup code is not run. This adds a error handler to the brush GMarkupParser to free the struct on error.
Review of attachment 206369 [details] [review]: Pushed! Thank you