[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [PATCH] format-kde-kuit: really use fallback markup
From: |
Pavel Raiskup |
Subject: |
[bug-gettext] [PATCH] format-kde-kuit: really use fallback markup |
Date: |
Wed, 21 Nov 2018 09:53:53 +0100 |
* gettext-tools/src/format-kde-kuit.c (format_parse): Use markup.h
methods when FORMAT_KDE_KUIT_USE_FALLBACK_MARKUP is defined. Also
free buffer if there's no support for XML.
---
gettext-tools/src/format-kde-kuit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gettext-tools/src/format-kde-kuit.c
b/gettext-tools/src/format-kde-kuit.c
index 07a304dd8..476d4fed6 100644
--- a/gettext-tools/src/format-kde-kuit.c
+++ b/gettext-tools/src/format-kde-kuit.c
@@ -251,7 +251,7 @@ format_parse (const char *format, bool translated, char
*fdi,
free (buffer);
xmlFreeDoc (doc);
}
-#elif FORMAT_KDE_KUIT_FALLBACK_MARKUP
+#elif FORMAT_KDE_KUIT_USE_FALLBACK_MARKUP
{
markup_parser_ty parser;
markup_parse_context_ty *context;
@@ -283,6 +283,7 @@ format_parse (const char *format, bool translated, char
*fdi,
}
#else
/* No support for XML. */
+ free (buffer);
#endif
spec.base = formatstring_kde.parse (format, translated, fdi, invalid_reason);
--
2.19.1
- [bug-gettext] [PATCH] format-kde-kuit: really use fallback markup,
Pavel Raiskup <=