[gnome-logs/wip/gl-journal: 2/2] Unref GFile and GtkCssProvider in gl_window_init()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs/wip/gl-journal: 2/2] Unref GFile and GtkCssProvider in gl_window_init()
- Date: Mon, 7 Oct 2013 16:22:54 +0000 (UTC)
commit 710c778530f3fdb4d85ab2af8a4c6a588bb08f0e
Author: David King <davidk gnome org>
Date: Mon Oct 7 17:22:10 2013 +0100
Unref GFile and GtkCssProvider in gl_window_init()
src/gl-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gl-window.c b/src/gl-window.c
index 24d4f32..af78c21 100644
--- a/src/gl-window.c
+++ b/src/gl-window.c
@@ -293,6 +293,7 @@ gl_window_init (GlWindow *window)
{
g_critical ("Error parsing CSS styling data: %s", err->message);
g_error_free (err);
+ g_object_unref (file);
g_object_unref (provider);
return;
}
@@ -301,6 +302,9 @@ gl_window_init (GlWindow *window)
gtk_style_context_add_provider_for_screen (screen,
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+ g_object_unref (file);
+ g_object_unref (provider);
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]