mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
bug fix: mark after locking so will unlock in destructor
This commit is contained in:
parent
7338a706cb
commit
2641ab6430
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; -*- */
|
||||
|
||||
/*
|
||||
* Copyright 2005 by Eric House (xwords@eehouse.org). All rights reserved.
|
||||
* Copyright 2005-2009 by Eric House (xwords@eehouse.org). All rights
|
||||
* reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -526,7 +527,7 @@ SafeCref::SafeCref( const char* cORn, bool isCookie, HostID hid, int socket,
|
|||
cref = m_mgr->getMakeCookieRef_locked( cORn, isCookie, hid, socket,
|
||||
nPlayersH, nPlayersT );
|
||||
if ( cref != NULL ) {
|
||||
cref->Lock();
|
||||
m_locked = cref->Lock();
|
||||
m_cref = cref;
|
||||
m_isValid = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue