Gitweb links:

...log 
http://git.netsurf-browser.org/libcss.git/shortlog/97ededd26cbc92c5bb214ccd99ef522ed2e8fbc8
...commit 
http://git.netsurf-browser.org/libcss.git/commit/97ededd26cbc92c5bb214ccd99ef522ed2e8fbc8
...tree 
http://git.netsurf-browser.org/libcss.git/tree/97ededd26cbc92c5bb214ccd99ef522ed2e8fbc8

The branch, master has been updated
       via  97ededd26cbc92c5bb214ccd99ef522ed2e8fbc8 (commit)
      from  53dfc60094f34bbbfd3410de9165396514fd23c2 (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/libcss.git/commit/?id=97ededd26cbc92c5bb214ccd99ef522ed2e8fbc8
commit 97ededd26cbc92c5bb214ccd99ef522ed2e8fbc8
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Media queries: Squash error-path leaks of feature names.

diff --git a/src/parse/mq.c b/src/parse/mq.c
index c5e353d..c05102c 100644
--- a/src/parse/mq.c
+++ b/src/parse/mq.c
@@ -426,7 +426,7 @@ static css_error mq_parse_range(lwc_string **strings,
                /* num/dim/ident */
                error = mq_populate_value(&result->value, name_or_value);
                if (error != CSS_OK) {
-                       free(result);
+                       css__mq_feature_destroy(result);
                        return error;
                }
        }
@@ -513,7 +513,7 @@ static css_error mq_parse_media_feature(lwc_string 
**strings,
 
                                error = mq_parse_ratio(vector, ctx, token, 
&ratio);
                                if (error != CSS_OK) {
-                                       free(result);
+                                       css__mq_feature_destroy(result);
                                        return error;
                                }
 
@@ -523,7 +523,7 @@ static css_error mq_parse_media_feature(lwc_string 
**strings,
                                /* num/dim/ident */
                                error = mq_populate_value(&result->value, 
token);
                                if (error != CSS_OK) {
-                                       free(result);
+                                       css__mq_feature_destroy(result);
                                        return error;
                                }
                        }


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

Summary of changes:
 src/parse/mq.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/parse/mq.c b/src/parse/mq.c
index c5e353d..c05102c 100644
--- a/src/parse/mq.c
+++ b/src/parse/mq.c
@@ -426,7 +426,7 @@ static css_error mq_parse_range(lwc_string **strings,
                /* num/dim/ident */
                error = mq_populate_value(&result->value, name_or_value);
                if (error != CSS_OK) {
-                       free(result);
+                       css__mq_feature_destroy(result);
                        return error;
                }
        }
@@ -513,7 +513,7 @@ static css_error mq_parse_media_feature(lwc_string 
**strings,
 
                                error = mq_parse_ratio(vector, ctx, token, 
&ratio);
                                if (error != CSS_OK) {
-                                       free(result);
+                                       css__mq_feature_destroy(result);
                                        return error;
                                }
 
@@ -523,7 +523,7 @@ static css_error mq_parse_media_feature(lwc_string 
**strings,
                                /* num/dim/ident */
                                error = mq_populate_value(&result->value, 
token);
                                if (error != CSS_OK) {
-                                       free(result);
+                                       css__mq_feature_destroy(result);
                                        return error;
                                }
                        }


-- 
Cascading Style Sheets library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to