tMemory leak in gtk_url_new() fixed. - vaccinewars - be a doctor and try to vaccinate the world
HTML git clone git://src.adamsgaard.dk/vaccinewars
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit a2b6d63561d928021695e37ca17d0f6418e9e09b
DIR parent 5294581ef5a58ff2dfc28c0f01e3f26402460da9
HTML Author: Ben Webb <ben@salilab.org>
Date: Mon, 22 Jul 2002 19:50:30 +0000
Memory leak in gtk_url_new() fixed.
Diffstat:
M src/gtkport/gtkport.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c
t@@ -5354,6 +5354,7 @@ GtkWidget *gtk_url_new(const gchar *text, const gchar *target,
style = gtk_style_copy(style);
style->fg[GTK_STATE_NORMAL] = color;
gtk_widget_set_style(label, style);
+ gtk_style_unref(style);
/* Make the text underlined */
len = strlen(text);