Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f741dd1b
Commit
f741dd1b
authored
Jan 26, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atmo: fix mismatch allocation/deallocation.
parent
df1a14da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
modules/video_filter/atmo/AtmoCalculations.cpp
modules/video_filter/atmo/AtmoCalculations.cpp
+22
-22
No files found.
modules/video_filter/atmo/AtmoCalculations.cpp
View file @
f741dd1b
...
@@ -54,17 +54,17 @@ CAtmoColorCalculator::CAtmoColorCalculator(CAtmoConfig *pAtmoConfig)
...
@@ -54,17 +54,17 @@ CAtmoColorCalculator::CAtmoColorCalculator(CAtmoConfig *pAtmoConfig)
CAtmoColorCalculator
::~
CAtmoColorCalculator
(
void
)
CAtmoColorCalculator
::~
CAtmoColorCalculator
(
void
)
{
{
delete
m_Weight
;
delete
[]
m_Weight
;
delete
m_hue_hist
;
delete
[]
m_hue_hist
;
delete
m_windowed_hue_hist
;
delete
[]
m_windowed_hue_hist
;
delete
m_most_used_hue_last
;
delete
[]
m_most_used_hue_last
;
delete
m_most_used_hue
;
delete
[]
m_most_used_hue
;
delete
m_sat_hist
;
delete
[]
m_sat_hist
;
delete
m_windowed_sat_hist
;
delete
[]
m_windowed_sat_hist
;
delete
m_most_used_sat
;
delete
[]
m_most_used_sat
;
delete
m_Zone_Weights
;
delete
[]
m_Zone_Weights
;
delete
m_average_v
;
delete
[]
m_average_v
;
delete
m_average_counter
;
delete
[]
m_average_counter
;
}
}
void
CAtmoColorCalculator
::
UpdateParameters
()
void
CAtmoColorCalculator
::
UpdateParameters
()
...
@@ -114,17 +114,17 @@ pColorPacket CAtmoColorCalculator::AnalyzeHSV(tHSVColor *HSV_Img)
...
@@ -114,17 +114,17 @@ pColorPacket CAtmoColorCalculator::AnalyzeHSV(tHSVColor *HSV_Img)
if
(
AtmoSetup_NumZones
!=
m_LastNumZones
)
if
(
AtmoSetup_NumZones
!=
m_LastNumZones
)
{
{
delete
m_Weight
;
delete
[]
m_Weight
;
delete
m_hue_hist
;
delete
[]
m_hue_hist
;
delete
m_windowed_hue_hist
;
delete
[]
m_windowed_hue_hist
;
delete
m_most_used_hue_last
;
delete
[]
m_most_used_hue_last
;
delete
m_most_used_hue
;
delete
[]
m_most_used_hue
;
delete
m_sat_hist
;
delete
[]
m_sat_hist
;
delete
m_windowed_sat_hist
;
delete
[]
m_windowed_sat_hist
;
delete
m_most_used_sat
;
delete
[]
m_most_used_sat
;
delete
m_Zone_Weights
;
delete
[]
m_Zone_Weights
;
delete
m_average_v
;
delete
[]
m_average_v
;
delete
m_average_counter
;
delete
[]
m_average_counter
;
m_Weight
=
new
int
[
AtmoSetup_NumZones
*
IMAGE_SIZE
];
m_Weight
=
new
int
[
AtmoSetup_NumZones
*
IMAGE_SIZE
];
m_Zone_Weights
=
new
int
*
[
AtmoSetup_NumZones
];
m_Zone_Weights
=
new
int
*
[
AtmoSetup_NumZones
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment