mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-15 21:11:17 +02:00
create bsd12 branch
This commit is contained in:
16
xapp/qtcreator/files/patch-src_libs_qmljs_qmljscontext.cpp
Normal file
16
xapp/qtcreator/files/patch-src_libs_qmljs_qmljscontext.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
This is just a hack, but the upstream response was "FreeBSD, whatevs".
|
||||
In default ports builds Without this spurious qDebug(), the pointer
|
||||
*reference gets weird addresses which don't correspond to any object
|
||||
allocated by the program. This hack may be disguising a memory problem
|
||||
higher up in the application.
|
||||
|
||||
--- src/libs/qmljs/qmljscontext.cpp.orig 2018-02-07 14:23:39 UTC
|
||||
+++ src/libs/qmljs/qmljscontext.cpp
|
||||
@@ -175,6 +175,7 @@ ReferenceContext::ReferenceContext(const
|
||||
const Value *ReferenceContext::lookupReference(const Value *value)
|
||||
{
|
||||
const Reference *reference = value_cast<Reference>(value);
|
||||
+ qDebug(); // some form of synchronisation happens here, preventing a crash
|
||||
if (!reference)
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user