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
ab429b30
Commit
ab429b30
authored
Sep 04, 2005
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2/src/theme_repository.cpp: do not use pointers on temporary strings.
Fixes #337.
parent
3a0a0ec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/gui/skins2/src/theme_repository.cpp
modules/gui/skins2/src/theme_repository.cpp
+7
-2
No files found.
modules/gui/skins2/src/theme_repository.cpp
View file @
ab429b30
...
@@ -126,10 +126,15 @@ void ThemeRepository::parseDirectory( const string &rDir )
...
@@ -126,10 +126,15 @@ void ThemeRepository::parseDirectory( const string &rDir )
msg_Dbg
(
getIntf
(),
"found skin %s"
,
path
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"found skin %s"
,
path
.
c_str
()
);
// Add the theme in the popup menu
// Add the theme in the popup menu
val
.
psz_string
=
(
char
*
)
path
.
c_str
();
string
shortname
=
name
.
substr
(
0
,
name
.
size
()
-
4
);
text
.
psz_string
=
(
char
*
)
name
.
substr
(
0
,
name
.
size
()
-
4
).
c_str
();
val
.
psz_string
=
new
char
[
path
.
size
()
+
1
];
text
.
psz_string
=
new
char
[
shortname
.
size
()
+
1
];
strcpy
(
val
.
psz_string
,
path
.
c_str
()
);
strcpy
(
text
.
psz_string
,
shortname
.
c_str
()
);
var_Change
(
getIntf
(),
"intf-skins"
,
VLC_VAR_ADDCHOICE
,
&
val
,
var_Change
(
getIntf
(),
"intf-skins"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
&
text
);
delete
[]
val
.
psz_string
;
delete
[]
text
.
psz_string
;
}
}
pDirContent
=
(
dirent
*
)
readdir
(
pDir
);
pDirContent
=
(
dirent
*
)
readdir
(
pDir
);
...
...
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