[totem] totem-glow-button: Fix memory leak



commit f5900f9da50858c7fe226ca7d95baefc9bf90743
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Mon Mar 31 14:45:23 2014 +0200

    totem-glow-button: Fix memory leak
    
    GtkStyleContext takes a reference of the GtkCssProvider, so release
    ours when no longer needed.

 browser-plugin/totem-glow-button.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/browser-plugin/totem-glow-button.c b/browser-plugin/totem-glow-button.c
index 691d0db..d7ded10 100644
--- a/browser-plugin/totem-glow-button.c
+++ b/browser-plugin/totem-glow-button.c
@@ -112,6 +112,7 @@ totem_glow_button_init (TotemGlowButton *button)
        gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
                                                   GTK_STYLE_PROVIDER (provider),
                                                   GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+        g_object_unref (provider);
 }
 
 GtkWidget *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]