Changeset 5771


Ignore:
Timestamp:
Apr 3, 2018 12:46:36 AM (17 months ago)
Author:
ming
Message:

Re #2059 (misc): Fixed "warnings: deleting object of polymorphic class type 'Base' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]"

Location:
pjproject/trunk/pjsip/include/pjsua2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/account.hpp

    r5755 r5771  
    10041004public: 
    10051005    /** 
     1006     * Virtual destructor 
     1007     */ 
     1008    virtual ~AccountIpChangeConfig() 
     1009    {} 
     1010 
     1011    /** 
    10061012     * Read this object from a container node. 
    10071013     * 
  • pjproject/trunk/pjsip/include/pjsua2/persistent.hpp

    r4704 r5771  
    5858{ 
    5959public: 
     60    /** 
     61     * Virtual destructor 
     62     */ 
     63    virtual ~PersistentObject() 
     64    {} 
     65 
    6066    /** 
    6167     * Read this object from a container node. 
Note: See TracChangeset for help on using the changeset viewer.