summaryrefslogtreecommitdiff
path: root/src/cr-sel-eng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cr-sel-eng.c')
-rw-r--r--src/cr-sel-eng.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/cr-sel-eng.c b/src/cr-sel-eng.c
index 92de775..77933b0 100644
--- a/src/cr-sel-eng.c
+++ b/src/cr-sel-eng.c
@@ -1189,24 +1189,22 @@ put_css_properties_in_props_list (CRPropList **a_props,
*style sheets which override
*the default style sheet."
*/
- if (decl->parent_statement
+ if (decl->parent_statement
&& decl->parent_statement->parent_sheet
&& (decl->parent_statement->parent_sheet->origin
<
a_stmt->parent_sheet->origin))
{
- tmp_props = cr_prop_list_unlink
+ tmp_props = cr_prop_list_unlink
(props, pair) ;
- if (!tmp_props)
- {
- cr_utils_trace_info ("tmp_props != NULL failed") ;
- continue ;
- }
+ /*TODO: pair leaks here, fix it!!*/
props = tmp_props ;
tmp_props = NULL ;
- cr_prop_list_append2 (props,
- cur_decl->property,
- cur_decl) ;
+ props = cr_prop_list_append2
+ (props,
+ cur_decl->property,
+ cur_decl) ;
+
continue ;
}
else if (decl->parent_statement