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

Only allocate a copy of style strings if requested. #441

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

Quipyowert2
Copy link
Contributor

do_free_src_and_alloc_copy wasn't being checked for the placement
position, the initial map command, the title format, and the icon title
format.

Fixes #430.

I hope this PR doesn't break anything like my previous one did.

  • Screenshots (if applicable)

  • PR acceptance criteria (reminder only, please delete once read)

    • Your commit message(s) are descriptive. See:

      https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

    • [https://raw.githubusercontent.com/fvwmorg/fvwm3/master/doc/README]Documentation updated (where appropriate)

    • Style guide followed (try and match the surrounding code where possible)

    • All tests are passing: although this is automatic, Codacy will often
      highlight additional considerations which will need to be addressed before
      the PR can be merged.

  • Issue number(s)

If this PR addresses any issues, please ensure the appropriate commit
message(s) contains:

Fixes #XXX

at the end of your commit message, where XXX should be replaced with the
relevant issue number.

If there is more than one issue fixed then use:

Fixes #XXX, fixes #YYY, fixes #ZZZ

do_free_src_and_alloc_copy wasn't being checked for the placement
position, the initial map command, the title format, and the icon title
format.

Fixes fvwmorg#430.
@ThomasAdam ThomasAdam self-assigned this Feb 22, 2021
@ThomasAdam ThomasAdam added the type:bug Something's broken! label Feb 22, 2021
@ThomasAdam ThomasAdam added this to the 1.0.3 milestone Feb 22, 2021
@ThomasAdam
Copy link
Member

Hi @Quipyowert2

Thanks. This looks correct, I'll take a proper look later on today. Although it's not related to your change per se, I absolutely dislike the pattern of heap vs stack, just because of state elsewhere. It's absolutely awful, but will get fixed over time...

@ThomasAdam ThomasAdam merged commit 0384728 into fvwmorg:master Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something's broken!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

21 byte memory leak in merge_styles (3 tiny leaks of 7 bytes)
2 participants