[gtk+] gtk-demo: Plug 2 small memleaks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk-demo: Plug 2 small memleaks
- Date: Sun, 16 Sep 2012 04:48:35 +0000 (UTC)
commit 5b13b72287cb371cda54ee51285f066a50818925
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 16 00:48:18 2012 -0400
gtk-demo: Plug 2 small memleaks
demos/gtk-demo/css_basics.c | 1 +
demos/gtk-demo/css_multiplebgs.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/demos/gtk-demo/css_basics.c b/demos/gtk-demo/css_basics.c
index b8ee668..5929d15 100644
--- a/demos/gtk-demo/css_basics.c
+++ b/demos/gtk-demo/css_basics.c
@@ -100,6 +100,7 @@ do_css_basics (GtkWidget *do_widget)
bytes = g_resources_lookup_data ("/css_basics/gtk.css", 0, NULL);
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
+ g_bytes_unref (bytes);
g_signal_connect (provider,
"parsing-error",
diff --git a/demos/gtk-demo/css_multiplebgs.c b/demos/gtk-demo/css_multiplebgs.c
index e05961f..6dececc 100644
--- a/demos/gtk-demo/css_multiplebgs.c
+++ b/demos/gtk-demo/css_multiplebgs.c
@@ -149,6 +149,7 @@ do_css_multiplebgs (GtkWidget *do_widget)
bytes = g_resources_lookup_data ("/css_multiplebgs/gtk.css", 0, NULL);
gtk_text_buffer_set_text (text, g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes));
+ g_bytes_unref (bytes);
g_signal_connect (provider,
"parsing-error",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]