Crash when creating a KHTMLView

Andreas Kling kling at impul.se
Fri Aug 12 12:52:01 BST 2005


On Thursday 11 August 2005 10.30, Andras Mantia wrote:
> As I saw ref/deref is done in the constructor destructor, so what about:
>
> KHTMLFactory *factory = new KHTMLFactory();
> accessKeysEnabled =
> KHTMLFactory::defaultHTMLSettings()->accessKeysEnabled();
> delete factory;

That's all right, but something like:

KHTMLSettings *settings = new KHTMLSettings();
accessKeysEnabled = settings->accessKeysEnabled();
delete settings;

...would create one less object. It still parses the configuration file 
another time, though, which is pretty ugly.

Ugh, someone throw me a bone here.

-- Andreas




More information about the kfm-devel mailing list