libsvgtiny: branch master updated. 657a6b8cb36918ea57fe8152aa3cc90528f15c58

NetSurf Browser Project (Commit Mailer) no-reply at netsurf-browser.org
Sat Nov 3 18:02:48 GMT 2012


Gitweb links:

...log http://git.netsurf-browser.org/libsvgtiny.git/shortlog/657a6b8cb36918ea57fe8152aa3cc90528f15c58
...commit http://git.netsurf-browser.org/libsvgtiny.git/commit/657a6b8cb36918ea57fe8152aa3cc90528f15c58
...tree http://git.netsurf-browser.org/libsvgtiny.git/tree/657a6b8cb36918ea57fe8152aa3cc90528f15c58

The branch, master has been updated
       via  657a6b8cb36918ea57fe8152aa3cc90528f15c58 (commit)
      from  59568396572ae0147f6741951c88c9ccc05cee80 (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/libsvgtiny.git/commitdiff/657a6b8cb36918ea57fe8152aa3cc90528f15c58
commit 657a6b8cb36918ea57fe8152aa3cc90528f15c58
Author: Daniel Silverstone <dsilvers at digital-scurf.org>
Commit: Daniel Silverstone <dsilvers at digital-scurf.org>

    Clean up properly

diff --git a/src/svgtiny.c b/src/svgtiny.c
index 18884a1..0dd5028 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -205,10 +205,18 @@ svgtiny_code svgtiny_parse(struct svgtiny_diagram *diagram,
 	dom_node_unref(document);
 
 cleanup:
+	if (state.gradient_x1 != NULL)
+		dom_string_unref(state.gradient_x1);
+	if (state.gradient_x2 != NULL)
+		dom_string_unref(state.gradient_x2);
+	if (state.gradient_y1 != NULL)
+		dom_string_unref(state.gradient_y1);
+	if (state.gradient_y2 != NULL)
+		dom_string_unref(state.gradient_y2);
 #define SVGTINY_STRING_ACTION2(s,n)			\
 	if (state.interned_##s != NULL)			\
 		dom_string_unref(state.interned_##s);
-//#include "svgtiny_strings.h"
+#include "svgtiny_strings.h"
 #undef SVGTINY_STRING_ACTION2
 	return code;
 }


-----------------------------------------------------------------------

Summary of changes:
 src/svgtiny.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/svgtiny.c b/src/svgtiny.c
index 18884a1..0dd5028 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -205,10 +205,18 @@ svgtiny_code svgtiny_parse(struct svgtiny_diagram *diagram,
 	dom_node_unref(document);
 
 cleanup:
+	if (state.gradient_x1 != NULL)
+		dom_string_unref(state.gradient_x1);
+	if (state.gradient_x2 != NULL)
+		dom_string_unref(state.gradient_x2);
+	if (state.gradient_y1 != NULL)
+		dom_string_unref(state.gradient_y1);
+	if (state.gradient_y2 != NULL)
+		dom_string_unref(state.gradient_y2);
 #define SVGTINY_STRING_ACTION2(s,n)			\
 	if (state.interned_##s != NULL)			\
 		dom_string_unref(state.interned_##s);
-//#include "svgtiny_strings.h"
+#include "svgtiny_strings.h"
 #undef SVGTINY_STRING_ACTION2
 	return code;
 }


-- 
NetSurf SVG decoder



More information about the netsurf-commits mailing list