gtksourceview r2269 - in trunk: . gtksourceview
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2269 - in trunk: . gtksourceview
- Date: Sun, 12 Apr 2009 16:20:22 +0000 (UTC)
Author: pborelli
Date: Sun Apr 12 16:20:22 2009
New Revision: 2269
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2269&view=rev
Log:
2009-04-12 Paolo Borelli <paolo borelli katamail com>
* gtksourceview/gtksourcelanguage-parser-2.c: do not leak
id string on the error codepath.
Modified:
trunk/ChangeLog
trunk/gtksourceview/gtksourcelanguage-parser-2.c
Modified: trunk/gtksourceview/gtksourcelanguage-parser-2.c
==============================================================================
--- trunk/gtksourceview/gtksourcelanguage-parser-2.c (original)
+++ trunk/gtksourceview/gtksourcelanguage-parser-2.c Sun Apr 12 16:20:22 2009
@@ -1239,11 +1239,13 @@
DEBUG (g_message ("defined regex %s: \"%s\"", id, (gchar *)regex));
g_hash_table_insert (parser_state->defined_regexes, id, expanded_regex);
}
+ else
+ {
+ g_propagate_error (&parser_state->error, tmp_error);
+ g_free (id);
+ }
xmlFree (regex);
-
- if (tmp_error != NULL)
- g_propagate_error (&parser_state->error, tmp_error);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]