Changeset 71 in libcf for trunk/src/cf_debug.c


Ignore:
Timestamp:
04/11/13 17:09:00 (11 years ago)
Author:
cheese
Message:

#1 fix logic to destroy global debug context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_debug.c

    r69 r71  
    327327CF_Debug_DestroyCtx (CF_Debug_Ctx ctx)
    328328{
    329     CF_DEBUG_CTX        * context = (CF_DEBUG_CTX *) ctx;
     329    CF_DEBUG_CTX * context = (CF_DEBUG_CTX *) ctx;
    330330
    331331    ASSERT_CTX (ctx);
     
    409409CF_Debug_Finalize (void)
    410410{
    411     return CF_Debug_DestroyCtx (gDebugSingleCtx);
     411    CF_Debug_Ctx ctx = gDebugSingleCtx;
     412
     413    gDebugSingleCtx = NULL;
     414
     415    return CF_Debug_DestroyCtx (ctx);
    412416}
    413417
Note: See TracChangeset for help on using the changeset viewer.