[gtk+] gradient: plug a GtkCssValue refleak
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gradient: plug a GtkCssValue refleak
- Date: Tue, 16 Oct 2012 17:22:53 +0000 (UTC)
commit 6fb66261cacaf787e02ccb1c49a0ef3aa853a087
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Oct 16 11:51:54 2012 -0400
gradient: plug a GtkCssValue refleak
Since _gtk_symbolic_color_resolve_full() returns a reference to a
GtkCssValue.
gtk/gtkgradient.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgradient.c b/gtk/gtkgradient.c
index 3c16fca..d6d7132 100644
--- a/gtk/gtkgradient.c
+++ b/gtk/gtkgradient.c
@@ -327,6 +327,7 @@ _gtk_gradient_resolve_full (GtkGradient *gradient,
{
rgba = *_gtk_css_rgba_value_get_rgba (val);
*dependencies = _gtk_css_dependencies_union (*dependencies, stop_deps);
+ _gtk_css_value_unref (val);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]