VirtualBox

Ignore:
Timestamp:
Oct 7, 2015 4:26:05 PM (9 years ago)
Author:
vboxsync
Message:

src/libs/xpcom: a couple of missing va_end()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsTimelineService.cpp

    r1 r58104  
    371371    va_start(args, text);
    372372    NS_TimelineMarkV(text, args);
     373    va_end(args);
    373374
    374375    return NS_OK;
     
    378379{
    379380    va_list args;
     381
     382    PR_CallOnce(&initonce, TimelineInit);
     383
     384    if (gTimelineDisabled)
     385        return NS_ERROR_NOT_AVAILABLE;
     386
     387    TimelineThreadData *thread = GetThisThreadData();
     388
     389    if (thread->disabled)
     390        return NS_ERROR_NOT_AVAILABLE;
     391
    380392    va_start(args, text);
    381 
    382     PR_CallOnce(&initonce, TimelineInit);
    383 
    384     if (gTimelineDisabled)
    385         return NS_ERROR_NOT_AVAILABLE;
    386 
    387     TimelineThreadData *thread = GetThisThreadData();
    388 
    389     if (thread->disabled)
    390         return NS_ERROR_NOT_AVAILABLE;
    391 
    392393    NS_TimelineMarkV(text, args);
     394    va_end(args);
    393395
    394396    return NS_OK;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette