Skip to content

Refactor OSK Initialization and Memory Management - #62

Merged
dogo merged 1 commit into
masterfrom
refactor/osk
Sep 8, 2024
Merged

Refactor OSK Initialization and Memory Management#62
dogo merged 1 commit into
masterfrom
refactor/osk

Conversation

@dogo

@dogo dogo commented Sep 8, 2024

Copy link
Copy Markdown
Owner

This PR refactors the OSK initialization and activation logic to improve code readability and memory management. Key changes include:

  • Removed redundant variables and commented-out code for cleaner implementation.
  • Enhanced memory management by ensuring proper allocation and deallocation of dynamic memory.
  • Simplified the logic for text handling in OSK, including text input and output retrieval.
  • Used consistent naming conventions and optimized string handling by using size_t for string lengths.

These changes aim to make the OSK code more maintainable, efficient, and easier to understand while preventing potential memory leaks.

…redundant variables and comments, ensured consistent memory allocation/deallocation, and simplified the logic for handling OSK text input/output.
@dogo
dogo merged commit 420c088 into master Sep 8, 2024
@dogo
dogo deleted the refactor/osk branch September 8, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant