[gtksourceview] ContextEngine: use g_clear_error()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] ContextEngine: use g_clear_error()
- Date: Mon, 13 Jun 2016 17:30:03 +0000 (UTC)
commit c944c07f80cfc03cddf17cd82624636d59e25b70
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jun 13 11:46:45 2016 +0200
ContextEngine: use g_clear_error()
gtksourceview/gtksourcecontextengine.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index 614aab1..d7dc4e9 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -3141,7 +3141,7 @@ create_reg_all (Context *context,
g_warning (_("Cannot create a regex for all the transitions, "
"the syntax highlighting process will be slower "
"than usual.\nThe error was: %s"), error->message);
- g_error_free (error);
+ g_clear_error (&error);
}
g_string_free (all, TRUE);
@@ -6312,7 +6312,7 @@ out:
if (error)
{
g_warning ("%s", error->message);
- g_error_free (error);
+ g_clear_error (&error);
}
}
@@ -6374,7 +6374,7 @@ out:
if (error)
{
g_warning ("%s", error->message);
- g_error_free (error);
+ g_clear_error (&error);
}
g_free (pattern);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]