[gedit/master-msvc: 7/10] plugins: Avoid g_autoptr
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/master-msvc: 7/10] plugins: Avoid g_autoptr
- Date: Fri, 29 Apr 2022 10:23:26 +0000 (UTC)
commit 17fc6091e7285fd432009a9d0d43d9ec9a91a7e8
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Oct 13 21:34:22 2021 +0800
plugins: Avoid g_autoptr
This is unfortunately a GCCism, so go back to the basics...
plugins/quickhighlight/gedit-quick-highlight-plugin.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plugins/quickhighlight/gedit-quick-highlight-plugin.c
b/plugins/quickhighlight/gedit-quick-highlight-plugin.c
index 7b4289dc7..898f5c587 100644
--- a/plugins/quickhighlight/gedit-quick-highlight-plugin.c
+++ b/plugins/quickhighlight/gedit-quick-highlight-plugin.c
@@ -104,7 +104,7 @@ gedit_quick_highlight_plugin_highlight_worker (gpointer user_data)
GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (user_data);
GtkSourceSearchSettings *search_settings;
GtkTextIter start, end;
- g_autofree gchar *text = NULL;
+ gchar *text = NULL;
g_assert (GEDIT_IS_QUICK_HIGHLIGHT_PLUGIN (plugin));
@@ -152,6 +152,7 @@ gedit_quick_highlight_plugin_highlight_worker (gpointer user_data)
gtk_source_search_settings_set_search_text (search_settings, text);
gtk_source_search_context_set_highlight (plugin->priv->search_context, TRUE);
+ g_free (text);
return G_SOURCE_REMOVE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]