VirtualBox

Changeset 58104 in vbox for trunk


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

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

Location:
trunk/src/libs/xpcom18a4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/ErrorUtils.cpp

    r39535 r58104  
    226226                LogMessage(LOGGER_ERROR, streamout);
    227227        }
     228    va_end(marker);
    228229}
    229230
     
    233234        va_start(marker, fmt);
    234235        VLogF(LOGGER_WARNING, fmt, marker);
     236    va_end(marker);
    235237}
    236238
     
    246248        va_start(marker, fmt);
    247249        VLogF(LOGGER_DEBUG, fmt, marker);
     250    va_end(marker);
    248251}
    249252#endif
  • trunk/src/libs/xpcom18a4/python/src/loader/pyloader.cpp

    r11746 r58104  
    321321        }
    322322        PyErr_Restore(exc_typ, exc_val, exc_tb);
     323    va_end(marker);
    323324}
    324325/*** - not currently used - silence compiler warning.
     
    336337        va_start(marker, fmt);
    337338        VLogF("PyXPCOM Loader Debug: ", fmt, marker);
     339    va_end(marker);
    338340}
    339341#else
  • 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