Skip to content

Commit

Permalink
NNN -> gh->extStringArray refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Utumno committed Jun 21, 2015
1 parent 2118405 commit e659c6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/loadorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ LIBLO unsigned int lo_get_load_order(lo_game_handle gh, char *** const plugins,
unsigned int successRetCode = LIBLO_OK;

//Free memory if in use.
if (gh->extStringArray != nullptr) {
if (gh->extStringArray != nullptr) { // (ut) this is just a global allocated array ?
for (size_t i = 0; i < gh->extStringArraySize; i++)
delete[] gh->extStringArray[i];
delete[] gh->extStringArray;
Expand All @@ -70,7 +70,7 @@ LIBLO unsigned int lo_get_load_order(lo_game_handle gh, char *** const plugins,
try {
gh->loadOrder.CheckValidity(*gh);
}
catch (error& e) {
catch (error& e) { // TODO(ut): make sure we only get a LIBLO_WARN_INVALID_LIST here
successRetCode = c_error(e);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/backend/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ namespace liblo {
return ret;
}
catch (std::exception&) {
// TODO(ut): log it !
return false;
}
}
Expand Down

0 comments on commit e659c6b

Please sign in to comment.