[latexila] BuildToolsDefault: fix GVariant handling



commit 351457e77585af067f9f19d8e9be35d5f5a64925
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed May 7 21:33:56 2014 +0200

    BuildToolsDefault: fix GVariant handling
    
    The GVariant here has a floating reference taken by GSettings, so no
    need to unref the GVariant.

 src/liblatexila/latexila-build-tools-default.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/liblatexila/latexila-build-tools-default.c b/src/liblatexila/latexila-build-tools-default.c
index 326bdee..6f3f1a0 100644
--- a/src/liblatexila/latexila-build-tools-default.c
+++ b/src/liblatexila/latexila-build-tools-default.c
@@ -152,8 +152,6 @@ save_settings (LatexilaBuildToolsDefault *build_tools)
   g_settings_set_value (settings, "enabled-default-build-tools", enabled_tools);
   g_settings_set_value (settings, "disabled-default-build-tools", disabled_tools);
 
-  g_variant_unref (enabled_tools);
-  g_variant_unref (disabled_tools);
   g_object_unref (settings);
 }
 


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