DilloURL has a dtor.
It is the same as the original free function. But this will let me put some ownership on various members and slowly start to C++ify this core type.
This commit is contained in:
@ -108,8 +108,8 @@ StyleEngine::~StyleEngine () {
|
||||
stackPop (); // dummy node on the bottom of the stack
|
||||
assert (stack.size () == 0);
|
||||
|
||||
a_Url_free(pageUrl);
|
||||
a_Url_free(baseUrl);
|
||||
delete pageUrl;
|
||||
delete baseUrl;
|
||||
|
||||
delete doctree;
|
||||
delete cssContext;
|
||||
@ -779,7 +779,7 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props,
|
||||
(new StyleImageDeletionReceiver (clientKey));
|
||||
}
|
||||
}
|
||||
a_Url_free (imgUrl);
|
||||
delete imgUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user