[haiku-commits] Change in haiku[master]: media-add-ons/mixer: Fix 'new[]' array freed with 'delete'

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 21 Sep 2019 10:43:28 +0000

From Murai Takashi <tmurai01@xxxxxxxxx>:

Murai Takashi has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/1877 ;)


Change subject: media-add-ons/mixer: Fix 'new[]' array freed with 'delete'
......................................................................

media-add-ons/mixer: Fix 'new[]' array freed with 'delete'

fMixBufferChannelTypes is allocated by new[] in _ApplyOutputFormat(),
but freed by delete.
Pointed out by LGTM.

Change-Id: I07b85801e0103094c5751306ea2c50ca9354ddb9
---
M src/add-ons/media/media-add-ons/mixer/MixerCore.cpp
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/77/1877/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1877
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I07b85801e0103094c5751306ea2c50ca9354ddb9
Gerrit-Change-Number: 1877
Gerrit-PatchSet: 1
Gerrit-Owner: Murai Takashi <tmurai01@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: media-add-ons/mixer: Fix 'new[]' array freed with 'delete' - Gerrit