Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2b35331a
Commit
2b35331a
authored
Nov 23, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/playlist.cpp: fixed uninitialized memory access.
parent
c2779ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+7
-16
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
2b35331a
...
...
@@ -342,22 +342,13 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
wxTR_MULTIPLE
|
wxTR_EXTENDED
);
/* Create image list */
wxImageList
*
p_images
=
new
wxImageList
(
16
,
16
,
TRUE
);
wxIcon
icons
[
10
];
icons
[
ITEM_TYPE_UNKNOWN
]
=
wxIcon
(
type_unknown_xpm
);
icons
[
ITEM_TYPE_DISC
]
=
wxIcon
(
type_disc_xpm
);
icons
[
ITEM_TYPE_DIRECTORY
]
=
wxIcon
(
type_directory_xpm
);
icons
[
ITEM_TYPE_PLAYLIST
]
=
wxIcon
(
type_playlist_xpm
);
icons
[
ITEM_TYPE_NET
]
=
wxIcon
(
type_net_xpm
);
icons
[
ITEM_TYPE_CARD
]
=
wxIcon
(
type_card_xpm
);
for
(
unsigned
int
i
=
0
;
i
<
WXSIZEOF
(
icons
)
;
i
++
)
{
p_images
->
Add
(
wxIcon
(
icons
[
i
]
));
}
wxImageList
*
p_images
=
new
wxImageList
(
16
,
16
,
TRUE
);
p_images
->
Add
(
wxIcon
(
type_unknown_xpm
)
);
p_images
->
Add
(
wxIcon
(
type_disc_xpm
)
);
p_images
->
Add
(
wxIcon
(
type_directory_xpm
)
);
p_images
->
Add
(
wxIcon
(
type_playlist_xpm
)
);
p_images
->
Add
(
wxIcon
(
type_net_xpm
)
);
p_images
->
Add
(
wxIcon
(
type_card_xpm
)
);
treectrl
->
AssignImageList
(
p_images
);
treectrl
->
AddRoot
(
wxU
(
_
(
"root"
)),
-
1
,
-
1
,
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