fix daca codeblocks crash (#1968)

* fix daca codeblocks crash

* fix the cause of the missing scope
This commit is contained in:
IOBYTE 2019-07-09 10:04:22 -04:00 committed by Daniel Marjamäki
parent 9b1066f0bc
commit a05dfc9150
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@
<define name="DECLARE_EXPORTED_EVENT_TYPE(expdecl, name, value)" value=""/>
<define name="DECLARE_EVENT_TYPE(name, value)" value=""/>
<define name="DECLARE_LOCAL_EVENT_TYPE(name, value)" value=""/>
<define name="DEFINE_EVENT_TYPE(name)" value="const wxEventType name = wxNewEventType()"/>
<define name="DEFINE_EVENT_TYPE(name)" value="const wxEventType name = wxNewEventType();"/>
<define name="DEFINE_LOCAL_EVENT_TYPE(name)" value=""/>
<define name="WX_DECLARE_STRING_HASH_MAP(name, value)" value=""/>
<define name="DECLARE_LOCAL_EVENT_TYPE(name, value)" value=""/>

View File

@ -355,7 +355,7 @@ void CheckMemoryLeak::mismatchAllocDealloc(const std::list<const Token *> &calls
CheckMemoryLeak::AllocType CheckMemoryLeak::functionReturnType(const Function* func, std::list<const Function*> *callstack) const
{
if (!func || !func->hasBody())
if (!func || !func->hasBody() || !func->functionScope)
return No;
// Get return pointer..