From 2641ab6430255bc319dc34b76de9433b77ede484 Mon Sep 17 00:00:00 2001 From: ehouse Date: Thu, 30 Jul 2009 12:39:45 +0000 Subject: [PATCH] bug fix: mark after locking so will unlock in destructor --- xwords4/relay/crefmgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xwords4/relay/crefmgr.cpp b/xwords4/relay/crefmgr.cpp index 513a00cdd..c223a5ac7 100644 --- a/xwords4/relay/crefmgr.cpp +++ b/xwords4/relay/crefmgr.cpp @@ -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; }