Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor TUI panels and fix several memleaks #4452

Merged
merged 15 commits into from
Apr 27, 2024

Conversation

pelijah
Copy link
Contributor

@pelijah pelijah commented Apr 20, 2024

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

...

Test plan

...

Closing issues

Partially addresses #4055

...

XVilka

This comment was marked as resolved.

Copy link
Member

@wargio wargio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes!

@pelijah

This comment was marked as outdated.

@XVilka

This comment was marked as outdated.

@pelijah

This comment was marked as outdated.

@pelijah
Copy link
Contributor Author

pelijah commented Apr 21, 2024

This TUI is buggy itself so am not sure that I didn't break something. Any suggestion how to test it?

@XVilka
Copy link
Member

XVilka commented Apr 21, 2024

This TUI is buggy itself so am not sure that I didn't break something. Any suggestion how to test it?

There was an idea of using Robot Framework for auto-testing TUI: #3959

@XVilka
Copy link
Member

XVilka commented Apr 21, 2024

As for manual testing - it's just better to do the same action in both before and after changes.

@pelijah

This comment was marked as resolved.

@pelijah pelijah marked this pull request as draft April 21, 2024 20:09
@pelijah pelijah marked this pull request as ready for review April 24, 2024 20:36
@pelijah pelijah changed the title Fix several memleaks in TUI Refactor TUI code to use vectors and fix several memleaks Apr 24, 2024
@pelijah pelijah changed the title Refactor TUI code to use vectors and fix several memleaks Refactor TUI code and fix several memleaks Apr 24, 2024
@pelijah pelijah requested a review from XVilka April 25, 2024 12:52
@XVilka XVilka requested a review from wargio April 26, 2024 00:30
librz/core/tui/panels.c Outdated Show resolved Hide resolved
librz/core/tui/panels.c Outdated Show resolved Hide resolved
Copy link
Member

@wargio wargio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm already ok with these changes since it is an extremely well done refactoring, but i would prefer to have those two checks converted as per comment.

@pelijah pelijah changed the title Refactor TUI code and fix several memleaks Refactor TUI panels and fix several memleaks Apr 26, 2024
@pelijah
Copy link
Contributor Author

pelijah commented Apr 26, 2024

Waiting rz_pvector_enumerate from #4462

@XVilka XVilka requested a review from wargio April 27, 2024 09:32
@wargio wargio merged commit 3aaa1bf into rizinorg:dev Apr 27, 2024
44 checks passed
@pelijah pelijah deleted the panels_memleaks branch April 28, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants