[gtk+] style context: Don't leak a widget path
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] style context: Don't leak a widget path
- Date: Fri, 18 Nov 2016 01:48:02 +0000 (UTC)
commit 39e3b3a483f8a5ef7252c45f6079d672e23b9fcd
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 17 20:22:42 2016 -0500
style context: Don't leak a widget path
Found by valgrind.
gtk/gtkstylecontext.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index df934e0..09c0a1b 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -1389,6 +1389,8 @@ _gtk_style_context_peek_style_property (GtkStyleContext *context,
gtk_widget_path_iter_get_state (path, -1),
pspec, &pcache->value))
{
+ gtk_widget_path_unref (path);
+
return &pcache->value;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]