Skip to content

Commit

Permalink
[Fix] openmpt123: Do not swallow buffered text output on exit. Broken…
Browse files Browse the repository at this point in the history
… since r21704.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21715 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Sep 23, 2024
1 parent 0d230d0 commit 308ce82
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openmpt123/openmpt123.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ class textout : public string_concat_stream<mpt::ustring> {
class textout_dummy : public textout {
public:
textout_dummy() = default;
~textout_dummy() override = default;
~textout_dummy() override {
static_cast<void>( pop() );
}
public:
void writeout() override {
static_cast<void>( pop() );
Expand Down Expand Up @@ -378,7 +380,9 @@ class textout_wrapper : public textout {
#endif
public:
textout_wrapper() = default;
~textout_wrapper() override = default;
~textout_wrapper() override {
out.write( pop() );
}
public:
void writeout() override {
out.write( pop() );
Expand Down

0 comments on commit 308ce82

Please sign in to comment.