Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: GitHub noreply@github.com Date: Sun, 08 Nov 2020 21:07:19 UTC Commit: 38645599d105e1f7cd94e38d6d36eace8d5d909b https://github.com/geany/geany-plugins/commit/38645599d105e1f7cd94e38d6d36ea...
Log Message: ----------- Merge pull request #1024 from frlan/enhancement/prettyprinter/compiler-warning
PrettyPrinter: Don't try to free const gchar* input_buffer
Modified Paths: -------------- pretty-printer/src/PluginEntry.c
Modified: pretty-printer/src/PluginEntry.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -186,7 +186,7 @@ void xml_format(GtkMenuItem* menuitem, gpointer gdata) ScintillaObject* sco; int input_length; gboolean has_selection; - const gchar* input_buffer; + gchar* input_buffer; int output_length; gchar* output_buffer; xmlDoc* parsedDocument; @@ -198,7 +198,7 @@ void xml_format(GtkMenuItem* menuitem, gpointer gdata)
editor = doc->editor; sco = editor->sci; - + /* default printing options */ if (prettyPrintingOptions == NULL) { prettyPrintingOptions = createDefaultPrettyPrintingOptions(); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org