[balsa] Plug leak
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Plug leak
- Date: Sat, 27 May 2017 13:08:03 +0000 (UTC)
commit ae8fd3b397b35d9b7c266790be5cd38b2a36185f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat May 27 09:07:26 2017 -0400
Plug leak
* libbalsa/libbalsa.c (libbalsa_source_view_new): use the
default GtkSourceStyleSchemeManager instead of leaking a new
one.
ChangeLog | 8 ++++++++
libbalsa/libbalsa.c | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6203b46..d56c15d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-05-27 Peter Bloomfield <pbloomfield bellsouth net>
+
+ Plug leak
+
+ * libbalsa/libbalsa.c (libbalsa_source_view_new): use the
+ default GtkSourceStyleSchemeManager instead of leaking a new
+ one.
+
2017-05-26 Peter Bloomfield <pbloomfield bellsouth net>
Plug leak
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index 4380e25..861649c 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -955,7 +955,7 @@ libbalsa_source_view_new(gboolean highlight_phrases)
if ((src_lang =
gtk_source_language_manager_get_language(lm, "balsa"))) {
GtkSourceStyleSchemeManager *smgr =
- gtk_source_style_scheme_manager_new();
+ gtk_source_style_scheme_manager_get_default();
gchar * sm_paths[] = {
BALSA_DATA_PREFIX "/gtksourceview-3.0",
NULL };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]