[gtk+] stylecontext: Don't unref animation description
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] stylecontext: Don't unref animation description
- Date: Thu, 12 Jan 2012 00:10:35 +0000 (UTC)
commit 581cc599458f684ba5287ffe1417950b1611f3aa
Author: Benjamin Otte <otte redhat com>
Date: Thu Jan 12 01:07:23 2012 +0100
stylecontext: Don't unref animation description
We get it without a ref since 6962b49a99eadc7f4266d13f66fca8611802fe09
gtk/gtkstylecontext.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index a39cf5a..370c782 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3063,10 +3063,7 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
return;
if (_gtk_animation_description_get_duration (desc) == 0)
- {
- _gtk_animation_description_unref (desc);
- return;
- }
+ return;
info = animation_info_lookup (context, region_id, state);
@@ -3103,8 +3100,6 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
priv->animations = g_slist_prepend (priv->animations, info);
priv->animations_invalidated = TRUE;
}
-
- _gtk_animation_description_unref (desc);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]