diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-25 15:09:23 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-25 15:09:23 +0200 |
commit | 1e1ada583fac67c05822c5caa3c0c04fce6cf9ce (patch) | |
tree | 127d8bb1a4224c4905e7bc6eaa4b1e13d9bbced2 /src/gmrequest.c | |
parent | 9c2b9929045a4121ce81b3e28a1a7ab742a3daa8 (diff) |
DocumentWidget: Crash after redirects
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c index 53a3d031..7443c68c 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c | |||
@@ -615,10 +615,12 @@ iGmResponse *lockResponse_GmRequest(iGmRequest *d) { | |||
615 | } | 615 | } |
616 | 616 | ||
617 | void unlockResponse_GmRequest(iGmRequest *d) { | 617 | void unlockResponse_GmRequest(iGmRequest *d) { |
618 | iAssert(d->respLocked); | 618 | if (d) { |
619 | d->respLocked = iFalse; | 619 | iAssert(d->respLocked); |
620 | set_Atomic(&d->allowUpdate, iTrue); | 620 | d->respLocked = iFalse; |
621 | unlock_Mutex(d->mtx); | 621 | set_Atomic(&d->allowUpdate, iTrue); |
622 | unlock_Mutex(d->mtx); | ||
623 | } | ||
622 | } | 624 | } |
623 | 625 | ||
624 | iBool isFinished_GmRequest(const iGmRequest *d) { | 626 | iBool isFinished_GmRequest(const iGmRequest *d) { |