* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
/* FIXME: We should use other error codes for the
return g_list_reverse (headers);
error:
- g_list_foreach (headers, (GFunc) g_free, NULL);
- g_list_free (headers);
+ g_list_free_full (headers, g_free);
g_set_error_literal (error,
G_MARKUP_ERROR,
create_tags, error, headers->next);
out:
- g_list_foreach (headers, (GFunc)g_free, NULL);
- g_list_free (headers);
+ g_list_free_full (headers, g_free);
return retval;
}