[webkit-dev] Calling gc::collect() before the program exits

Zoltan Herczeg zherczeg at inf.u-szeged.hu
Mon Jul 27 11:06:58 PDT 2009


Hi,

by default, gc::collect() is triggered by a timer at regular intervals. In
QtLauncher, gc::collect() is not called in any other way, so the remaining
JS objects cause memory leaks when QtLauncher exits. Although this
approach may not be considered a bug, since the program soon quits, I
would be curious what other ports do before they return to the OS? This
question is more important, if we want to use WebKit as a library: in this
case the closing of the last WebKit frame may not necessary means the end
of the current program.

thanks,
Zoltan




More information about the webkit-dev mailing list