Changeset 5650 for pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp
- Timestamp:
- Sep 18, 2017 7:10:11 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp
r5646 r5650 19 19 #include <pjsua2.hpp> 20 20 #include <iostream> 21 #include <memory>22 21 #include <pj/file_access.h> 23 22 … … 129 128 acc_cfg.sipConfig.authCreds.push_back( AuthCredInfo("digest", "*", 130 129 "test1", 0, "test1") ); 131 std::unique_ptr<MyAccount>acc(new MyAccount);130 MyAccount *acc(new MyAccount); 132 131 acc->create(acc_cfg); 133 132 … … 149 148 // Destroy library 150 149 std::cout << "*** PJSUA2 SHUTTING DOWN ***" << std::endl; 150 delete call; 151 delete acc; 151 152 } 152 153 … … 308 309 AccountConfig acc_cfg; 309 310 acc_cfg.idUri = "sip:localhost"; 310 std::unique_ptr<MyAccount>acc(new MyAccount);311 MyAccount *acc(new MyAccount); 311 312 acc->create(acc_cfg); 312 313 … … 318 319 std::cout << "Press ENTER to quit..." << std::endl; 319 320 std::cin.get(); 321 322 delete acc; 320 323 } 321 324
Note: See TracChangeset
for help on using the changeset viewer.