Commit 329a3462 authored by Alan Alpert's avatar Alan Alpert Committed by The Qt Project
Browse files

Document percieved memory leak


QJSEngine doesn't call collectGarbage upon deletion, because this
operation can be expensive and in most cases the JS engine is deleted
during application shutdown, when the memory can be deallocated cheaper.

This can lead to an apparent memory leak if multiple engines are created
and destroyed in the same process. Documenting how to avoid this.

Change-Id: Ie02cb8bedc8821e0bb04dfa52a5a2d65b4b085a3
Reviewed-by: default avatarChristopher Adams <chris.adams@jollamobile.com>
parent d88f6f23
Showing with 6 additions and 0 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment