Skip to content

Commit c440da5

Browse files
Alan Alpertphartmann
Alan Alpert
authored andcommitted
[BB10-internal] Workaround for PR 318290
Hard to reproduce crashes on application exit are being worked around by leaking the memory (safe, as this should only occur on application exit when the memory will be cleaned up at a process level shortly). Change-Id: I6525a39edc772277b8d92820f520542fcdc4580a Signed-off-by: Peter Hartmann <[email protected]>
1 parent 5da691d commit c440da5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/script/api/qscriptengine_p.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,10 @@ inline void QScriptValuePrivate::operator delete(void *ptr)
803803
QScriptValuePrivate *d = reinterpret_cast<QScriptValuePrivate*>(ptr);
804804
if (d->engine)
805805
d->engine->freeScriptValuePrivate(d);
806+
#ifndef Q_OS_BLACKBERRY //Workaround for PR318290
806807
else
807808
qFree(d);
809+
#endif
808810
}
809811

810812
inline void QScriptEnginePrivate::saveException(JSC::ExecState *exec, JSC::JSValue *val)

0 commit comments

Comments
 (0)