[gnome-flashback/wip/segeiger/inputmethods] Use g_error_free



commit f8ebe81d75b7b85f0baa2d9134293d21ed855c63
Author: Sebastian Geiger <sbastig gmx net>
Date:   Mon Sep 14 17:01:36 2015 +0200

    Use g_error_free

 gnome-flashback/libinput-sources/gf-ibus-manager.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-ibus-manager.c 
b/gnome-flashback/libinput-sources/gf-ibus-manager.c
index 819a85c..da60839 100644
--- a/gnome-flashback/libinput-sources/gf-ibus-manager.c
+++ b/gnome-flashback/libinput-sources/gf-ibus-manager.c
@@ -177,7 +177,7 @@ get_global_engine_callback (IBusBus *ibus, guint i, GAsyncResult *result, GfIBus
                _("Could not get result for 'ibus_bus_get_global_async': %s"),
                error->message);
         onDisconnected (manager->ibus, manager);
-        g_free (error);
+        g_error_free (error);
     }
 
     if (!engineDescription) {
@@ -209,7 +209,7 @@ initPanelService (IBusBus *ibus, GAsyncResult *result, GfIBusManager *manager)
         g_log ("gnome-flashback", G_LOG_LEVEL_ERROR,
                _("Could not get result for 'ibus_bus_request_name_async': %s"), error->message);
         onDisconnected (manager->ibus, manager);
-        g_free (error);
+        g_error_free (error);
     }
 
     if (success) {
@@ -243,7 +243,7 @@ spawn (GfIBusManager *manager)
     manager->ibusDaemonSubprocess = g_subprocess_new (G_SUBPROCESS_FLAGS_NONE, &error, "ibus-daemon", 
"--xim", "--panel", "disabled", NULL);
     if (error) {
         g_log ("gnome-flashback", G_LOG_LEVEL_ERROR, _("Failed to launch ibus-daemon: %s"), error->message);
-        g_free (error);
+        g_error_free (error);
     }
 }
 


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