Skip to content

Commit

Permalink
Add missing lock
Browse files Browse the repository at this point in the history
  • Loading branch information
pcanal authored and Dr15Jones committed Sep 15, 2014
1 parent eece97f commit 800d8db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/meta/src/TMethodCall.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ TMethodCall::EReturnType TMethodCall::ReturnType()
// Since finding the return type is expensive the result is cached.

if ( fRetType == kNone) {
R__LOCKGUARD2(gCINTMutex);

if ( fRetType != kNone) {
return fRetType;
}

TFunction *func = GetMethod();
if (func == 0) {
fRetType = kOther;
Expand Down

0 comments on commit 800d8db

Please sign in to comment.