Skip to content

Commit

Permalink
[Encode] fix delete(void*) issue in const setting classes
Browse files Browse the repository at this point in the history
old gcc(4.9.3) cannot support delete(void*), use alloc/free other than new/delete.

Change-Id: I2e30ff185b70f36dd46e0d06577e3f72a4a8c90f
  • Loading branch information
linlinz1 authored and intel-mediadev committed Apr 30, 2020
1 parent 237da75 commit 88769b2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class MediaFeatureConstSettings
//!
//! \brief MediaFeatureConstSettings deconstructor
//!
virtual ~MediaFeatureConstSettings()
virtual ~MediaFeatureConstSettings()
{
if (m_featureSetting != nullptr)
{
MOS_Delete(m_featureSetting);
MOS_FreeMemory(m_featureSetting);
}
}

Expand Down Expand Up @@ -89,4 +89,4 @@ class MediaFeatureConstSettings
void *m_featureSetting = nullptr;
};

#endif // !__MEDIA_FEATURE_CONST_SETTINGS_H__
#endif // !__MEDIA_FEATURE_CONST_SETTINGS_H__

0 comments on commit 88769b2

Please sign in to comment.