[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 01/01: Fix memory leak with strdupped sensors label for tacho that can be freed because pango seems to hold a private copy of it
noreply at xfce.org
noreply at xfce.org
Mon Mar 27 23:35:02 CEST 2017
This is an automated email from the git hooks/post-receive script.
timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.
commit 6d59db4dadea6c548b0597b0126dd9d7f20bde50
Author: Fabian <timystery at arcor.de>
Date: Mon Mar 27 23:34:12 2017 +0200
Fix memory leak with strdupped sensors label for tacho that can be freed because pango seems to hold a private copy of it
---
lib/tacho.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/tacho.c b/lib/tacho.c
index 7f2d8ca..df29257 100644
--- a/lib/tacho.c
+++ b/lib/tacho.c
@@ -371,6 +371,7 @@ gtk_sensorstacho_paint (GtkWidget *widget,
ptr_text = g_strdup_printf("<span color=\"%s\">%s</span>", GTK_SENSORSTACHO(widget)->color, GTK_SENSORSTACHO(widget)->text);
pango_layout_set_markup (ptr_layout, ptr_text, -1); // with null-termination, no need to give length explicitly
+ g_free(ptr_text);
ptr_pangofontdescription = pango_font_description_from_string(font);
pango_layout_set_font_description (ptr_layout, ptr_pangofontdescription);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list