webengine: fixed a memory leak, after Firewave's suggestion. nw.