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
13761f2a
Commit
13761f2a
authored
Jul 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
That's safe to delete NULL.
parent
3d14423a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
25 deletions
+8
-25
modules/gui/skins2/controls/ctrl_list.cpp
modules/gui/skins2/controls/ctrl_list.cpp
+2
-8
modules/gui/skins2/src/file_bitmap.cpp
modules/gui/skins2/src/file_bitmap.cpp
+1
-1
modules/gui/skins2/src/ft2_bitmap.cpp
modules/gui/skins2/src/ft2_bitmap.cpp
+1
-4
modules/gui/skins2/src/scaled_bitmap.cpp
modules/gui/skins2/src/scaled_bitmap.cpp
+1
-4
modules/gui/skins2/utils/ustring.cpp
modules/gui/skins2/utils/ustring.cpp
+1
-4
modules/video_filter/atmo/AtmoConfig.cpp
modules/video_filter/atmo/AtmoConfig.cpp
+2
-4
No files found.
modules/gui/skins2/controls/ctrl_list.cpp
View file @
13761f2a
...
...
@@ -65,10 +65,7 @@ CtrlList::~CtrlList()
{
m_rList
.
getPositionVar
().
delObserver
(
this
);
m_rList
.
delObserver
(
this
);
if
(
m_pImage
)
{
delete
m_pImage
;
}
delete
m_pImage
;
}
...
...
@@ -411,10 +408,7 @@ void CtrlList::autoScroll()
void
CtrlList
::
makeImage
()
{
if
(
m_pImage
)
{
delete
m_pImage
;
}
delete
m_pImage
;
// Get the size of the control
const
Position
*
pPos
=
getPosition
();
...
...
modules/gui/skins2/src/file_bitmap.cpp
View file @
13761f2a
...
...
@@ -85,7 +85,7 @@ FileBitmap::FileBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
FileBitmap
::~
FileBitmap
()
{
if
(
m_pData
)
delete
[]
m_pData
;
delete
[]
m_pData
;
}
...
...
modules/gui/skins2/src/ft2_bitmap.cpp
View file @
13761f2a
...
...
@@ -36,10 +36,7 @@ FT2Bitmap::FT2Bitmap( intf_thread_t *pIntf, int width, int height ):
FT2Bitmap
::~
FT2Bitmap
()
{
if
(
m_pData
)
{
delete
[]
m_pData
;
}
delete
[]
m_pData
;
}
...
...
modules/gui/skins2/src/scaled_bitmap.cpp
View file @
13761f2a
...
...
@@ -104,9 +104,6 @@ ScaledBitmap::ScaledBitmap( intf_thread_t *pIntf, const GenericBitmap &rBitmap,
ScaledBitmap
::~
ScaledBitmap
()
{
if
(
m_pData
)
{
delete
[]
m_pData
;
}
delete
[]
m_pData
;
}
modules/gui/skins2/utils/ustring.cpp
View file @
13761f2a
...
...
@@ -130,10 +130,7 @@ UString::UString( intf_thread_t *pIntf, const char *pString ):
UString
::~
UString
()
{
if
(
m_pString
)
{
delete
[]
m_pString
;
}
delete
[]
m_pString
;
}
...
...
modules/video_filter/atmo/AtmoConfig.cpp
View file @
13761f2a
...
...
@@ -211,8 +211,7 @@ int CAtmoConfig::getNumChannelAssignments() {
void
CAtmoConfig
::
clearChannelMappings
()
{
for
(
int
i
=
1
;
i
<
10
;
i
++
)
{
tChannelAssignment
*
ca
=
m_ChannelAssignments
[
i
];
if
(
ca
!=
NULL
)
delete
ca
;
delete
ca
;
m_ChannelAssignments
[
i
]
=
NULL
;
}
}
...
...
@@ -220,8 +219,7 @@ void CAtmoConfig::clearChannelMappings() {
void
CAtmoConfig
::
clearAllChannelMappings
()
{
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
tChannelAssignment
*
ca
=
m_ChannelAssignments
[
i
];
if
(
ca
!=
NULL
)
delete
ca
;
delete
ca
;
m_ChannelAssignments
[
i
]
=
NULL
;
}
}
...
...
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