Ticket #2011 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

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

comment:1 Changed 3 months ago by ming

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

In 5581:

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

Note: See TracTickets for help on using tickets.