GNOME Bugzilla – Bug 747542
fix schema compiler error handling for <summary> and <description>
Last modified: 2015-04-09 02:36:45 UTC
Here are a couple of follow-ups to bug 747209. Bug 747472 needs to be fixed first in order for the patches to apply.
Created attachment 301171 [details] [review] gsettings: fix schema compiler error handling Fix a couple of issues in error handling in glib-compile-schemas. The first problem is that, in case of repeated <summary> or <description> tags we were still allocating a GString which was never being freed (due to the throwing of the error resulting in immediate termination of the parse). The second problem is that if the repeated <summary> tag also had attributes, we would attempt to set the GError twice.
Created attachment 301172 [details] [review] gsettings: add test for repeated <summary> errors Make sure error handling on repeated <summary> and <description> is being done properly, not resulting in glib-compile-schemas throwing a critical.
Review of attachment 301171 [details] [review]: good catch
Review of attachment 301172 [details] [review]: sure
Attachment 301171 [details] pushed as 7f4fdb5 - gsettings: fix schema compiler error handling Attachment 301172 [details] pushed as 3fa0a05 - gsettings: add test for repeated <summary> errors