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

Memory Leak on XojFont #10

Closed
wbrenna opened this issue Aug 25, 2013 · 2 comments
Closed

Memory Leak on XojFont #10

wbrenna opened this issue Aug 25, 2013 · 2 comments
Labels

Comments

@wbrenna
Copy link
Contributor

wbrenna commented Aug 25, 2013

If the font size (probably type as well) is changed, it will leak "-1" objects of type XojFont. This does not actually require typing anything in the new or old font.

@andreasb242
Copy link
Contributor

There is a macro "XOJ_INIT_TYPE(SaveJob);" missing e.g. in a copy constructor.

I used this macros because its faster than use e.g. valgrind, and it's always on, also if the user don't mind about it...

The disadvantage is: it has to be inserted in each constructor / destructor.

@wbrenna
Copy link
Contributor Author

wbrenna commented Aug 26, 2013

Good call - it's in FontButton when it returns an XojFont without constructing a new one. Fixed...

@wbrenna wbrenna closed this as completed Aug 26, 2013
@yasmah74 yasmah74 mentioned this issue May 18, 2023
@Fefeffefe Fefeffefe mentioned this issue Jun 21, 2023
@Samanbaia Samanbaia mentioned this issue Jul 22, 2023
@rschram rschram mentioned this issue Oct 26, 2023
@dh2pp dh2pp mentioned this issue Jan 17, 2024
@majorace majorace mentioned this issue Apr 9, 2024
@01-1 01-1 mentioned this issue Apr 20, 2024
@IlyaSulli IlyaSulli mentioned this issue May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants