Skip to content

Commit

Permalink
Merge pull request #21 from prueckl/encoding_cleanup
Browse files Browse the repository at this point in the history
RfbEncoder: QImageWriter doesn't release unused data from its buffer.
  • Loading branch information
uwerat authored Feb 17, 2024
2 parents 79b65a3 + 6bbfbb2 commit 379cf6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/RfbEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace

void release() override
{
m_encodedData.resize( 0 );
}

private:
Expand Down
2 changes: 1 addition & 1 deletion src/VncClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace
OSSL_PROVIDER_unload( m_provider[0] );

if ( m_provider[1] )
OSSL_PROVIDER_unload( m_provider[1]
OSSL_PROVIDER_unload( m_provider[1] );
#endif
}

Expand Down

0 comments on commit 379cf6a

Please sign in to comment.