Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Amarok
Commits
a8650283
Commit
a8650283
authored
Jan 05, 2012
by
Soren Harward
Browse files
Fix potential dangling iterator
BUG: 290533
parent
1cccedfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
a8650283
...
...
@@ -16,6 +16,7 @@ Version 2.6-Beta 1
"1.2 GB free" is shown instead of "85% used"; thicker capacity bar.
BUGFIXES:
* Fix rare APG solver crash. (BR 290533)
* Compilations are handled more consistently on iPods. (BR 232072)
Version 2.5
...
...
src/playlistgenerator/ConstraintSolver.cpp
View file @
a8650283
...
...
@@ -253,6 +253,8 @@ APG::ConstraintSolver::select_population( APG::ConstraintSolver::Population& pop
while
(
it
!=
population
.
end
()
)
{
if
(
it
.
key
()
==
best
)
{
++
it
;
// Always keep the best solution, no matter how bad it is
if
(
it
==
population
.
end
()
)
break
;
}
if
(
select
(
it
.
value
()
)
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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