Opened 7 years ago

Closed 7 years ago

#2011 closed defect (fixed)

Fixed crash when accessing video device info in pjsua2

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.7
Component: pjsua2 Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

The dynamic allocation for media format vector in audio/video device info creates unnecessary complexity such as memory leak and premature/double deletion. In this particular instance, once getDevInfo() returns, the dynamically allocated formats would have already been deleted in the destructor, causing crash when trying to access the info.

Change History (1)

comment:1 Changed 7 years ago by ming

  • Resolution set to fixed
  • Status changed from new to closed

In 5581:

Fixed #2011: Fixed crash when accessing video device info in pjsua2

Note: See TracTickets for help on using tickets.