* libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
* libglabels/xml-template.c: (gl_xml_template_parse_template_node):
* src/xml-label-191.c: (xml191_parse_sheet):
Fixed improper freeing of gettext strings. Merged from 2.0.1.
* configure.in:
Reconciled libglabels versioning with 2.0.1.
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@457
f5e0f49d-192f-0410-a22d-
a8d8700d0965
+2004-08-14 Jim Evins <evins@snaught.com>
+
+ * libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
+ * libglabels/xml-template.c: (gl_xml_template_parse_template_node):
+ * src/xml-label-191.c: (xml191_parse_sheet):
+ Fixed improper freeing of gettext strings. Merged from 2.0.1.
+ * configure.in:
+ Reconciled libglabels versioning with 2.0.1.
+
+
2004-08-14 Jim Evins <evins@snaught.com>
* configure.in:
dnl 6. If any interfaces have been removed since the last public release, then set age
dnl to 0.
LIBGLABELS_C=1
-LIBGLABELS_R=0
+LIBGLABELS_R=1
LIBGLABELS_A=0
LIBGLABELS_VERSION_INFO=${LIBGLABELS_C}:${LIBGLABELS_R}:${LIBGLABELS_A}
name = xmlGetProp (paper_node, "_name");
if (name != NULL) {
- name = gettext (name);
+
+ gchar *tmp = gettext (name);
+
+ if (tmp != name) {
+ g_free (name);
+ name = g_strdup (tmp);
+ }
+
} else {
name = xmlGetProp (paper_node, "name");
}
description = xmlGetProp (template_node, "_description");
if (description != NULL) {
- description = gettext (description);
+
+ gchar *tmp = gettext (description);
+
+ if (tmp != description) {
+ g_free (description);
+ description = g_strdup (tmp);
+ }
+
} else {
description = xmlGetProp (template_node, "description");
}
description = xmlGetProp (sheet_node, "_description");
if (description != NULL) {
- template->description = gettext (description);
+
+ gchar *tmp = gettext (description);
+
+ if (tmp == description) {
+ template->description = description;
+ } else {
+ template->description = g_strdup (tmp);
+ }
+
+
} else {
template->description = xmlGetProp (sheet_node, "description");
}