Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 1,636
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Do I need to free the Sheet after closing the screen?

If I use this to load the xml screen in C++


    QmlDocument *qml = QmlDocument::create("asset:///myscreen.qml").parent(this);
    mySheet = qml->createRootObject<Sheet>();

do I have to free it after the screen is closed or does the OS free it?