Gitweb links:
...log
http://git.netsurf-browser.org/libdom.git/shortlog/7595126d25277f09f9a0fb...
...commit
http://git.netsurf-browser.org/libdom.git/commit/7595126d25277f09f9a0fb37...
...tree
http://git.netsurf-browser.org/libdom.git/tree/7595126d25277f09f9a0fb3769...
The branch, master has been updated
via 7595126d25277f09f9a0fb3769407428d3862402 (commit)
via c81f7ac01a3b7950749290855041a74517d4513e (commit)
from 77c29208368a77524e24a419238529edeec82c4d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libdom.git/commit/?id=7595126d25277f09f9a0...
commit 7595126d25277f09f9a0fb3769407428d3862402
Author: Michael Drake <michael.drake(a)codethink.co.uk>
Commit: Michael Drake <michael.drake(a)codethink.co.uk>
Example: Clean up LWC string table.
All leaks squashed.
diff --git a/examples/dom-structure-dump.c b/examples/dom-structure-dump.c
index b36bac2..c719903 100644
--- a/examples/dom-structure-dump.c
+++ b/examples/dom-structure-dump.c
@@ -312,6 +312,15 @@ bool dump_dom_structure(dom_node *node, int depth)
return true;
}
+/* LWC leak callback */
+void sd__fini_lwc_callback(lwc_string *str, void *pw)
+{
+ (void)(pw);
+
+ fprintf(stderr, "Leaked string: %.*s\n",
+ (int)lwc_string_length(str),
+ lwc_string_data(str));
+}
/**
* Main entry point from OS.
@@ -355,6 +364,7 @@ int main(int argc, char **argv)
dom_node_unref(doc);
dom_namespace_finalise();
+ lwc_iterate_strings(sd__fini_lwc_callback, NULL);
return EXIT_SUCCESS;
}
commitdiff
http://git.netsurf-browser.org/libdom.git/commit/?id=c81f7ac01a3b79507492...
commit c81f7ac01a3b7950749290855041a74517d4513e
Author: Michael Drake <michael.drake(a)codethink.co.uk>
Commit: Michael Drake <michael.drake(a)codethink.co.uk>
Example: Finalise namespaces.
diff --git a/examples/dom-structure-dump.c b/examples/dom-structure-dump.c
index 4ce7670..b36bac2 100644
--- a/examples/dom-structure-dump.c
+++ b/examples/dom-structure-dump.c
@@ -354,6 +354,7 @@ int main(int argc, char **argv)
/* Finished with the dom_document */
dom_node_unref(doc);
+ dom_namespace_finalise();
return EXIT_SUCCESS;
}
-----------------------------------------------------------------------
Summary of changes:
examples/dom-structure-dump.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/examples/dom-structure-dump.c b/examples/dom-structure-dump.c
index 4ce7670..c719903 100644
--- a/examples/dom-structure-dump.c
+++ b/examples/dom-structure-dump.c
@@ -312,6 +312,15 @@ bool dump_dom_structure(dom_node *node, int depth)
return true;
}
+/* LWC leak callback */
+void sd__fini_lwc_callback(lwc_string *str, void *pw)
+{
+ (void)(pw);
+
+ fprintf(stderr, "Leaked string: %.*s\n",
+ (int)lwc_string_length(str),
+ lwc_string_data(str));
+}
/**
* Main entry point from OS.
@@ -354,6 +363,8 @@ int main(int argc, char **argv)
/* Finished with the dom_document */
dom_node_unref(doc);
+ dom_namespace_finalise();
+ lwc_iterate_strings(sd__fini_lwc_callback, NULL);
return EXIT_SUCCESS;
}
--
Document Object Model library