gtksourceview r2009 - in trunk: . gtksourceview
- From: muntyan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2009 - in trunk: . gtksourceview
- Date: Tue, 5 Aug 2008 23:56:15 +0000 (UTC)
Author: muntyan
Date: Tue Aug 5 23:56:15 2008
New Revision: 2009
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2009&view=rev
Log:
2008-08-05 Yevgen Muntyan <muntyan tamu edu>
* gtksourceview/gtksourcestylescheme.c (parse_style): do not leak line_bg.
Modified:
trunk/ChangeLog
trunk/gtksourceview/gtksourcestylescheme.c
Modified: trunk/gtksourceview/gtksourcestylescheme.c
==============================================================================
--- trunk/gtksourceview/gtksourcestylescheme.c (original)
+++ trunk/gtksourceview/gtksourcestylescheme.c Tue Aug 5 23:56:15 2008
@@ -788,7 +788,9 @@
{
GtkSourceStyle *use_style = NULL;
GtkSourceStyle *result = NULL;
- xmlChar *fg = NULL, *bg = NULL, *line_bg = NULL;
+ xmlChar *fg = NULL;
+ xmlChar *bg = NULL;
+ xmlChar *line_bg = NULL;
gchar *style_name = NULL;
guint mask = 0;
gboolean bold = FALSE;
@@ -853,6 +855,7 @@
g_free (style_name);
xmlFree (fg);
xmlFree (bg);
+ xmlFree (line_bg);
return FALSE;
}
@@ -891,6 +894,7 @@
*style_p = result;
*style_name_p = style_name;
+ xmlFree (line_bg);
xmlFree (bg);
xmlFree (fg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]