VirtualBox

Changeset 62333 in vbox for trunk/src/libs


Ignore:
Timestamp:
Jul 19, 2016 3:54:08 PM (8 years ago)
Author:
vboxsync
Message:

xpcom: Properly init mLock member in CategoryNode and nsCategoryManager
constructors to avoid potential deletion through a garbage pointer on
the error leg of Create().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/components/nsCategoryManager.h

    r1 r62333  
    117117
    118118private:
    119   CategoryNode() { }
     119  CategoryNode() : mLock(nsnull) { }
    120120  void* operator new(size_t aSize, PLArenaPool* aArena);
    121121
     
    143143  NS_METHOD WriteCategoryManagerToRegistry(PRFileDesc* fd);
    144144
    145   nsCategoryManager() { }
     145  nsCategoryManager() : mLock(nsnull) { }
    146146private:
    147147  friend class nsCategoryManagerFactory;
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