-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
mate-session: fix memory leak #285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I do NOT know now to properly test these tools, my normal session with compiz starts up same as always with this installed. I can see the memory management changes though and this should work. I am guessing the const
portion of these declarations was being tossed by the compiler at build time due to the expected changes of value at runtime.
Nope. Most people don't know this, but in C, when you add the
The
By the way, if you wanted to make the pointer read-only, so that the pointer itself could not be re-assigned the address of some other variable, I think you can apply the
I'm a little rusty on that last point, but it's either that or immediately preceding the asterisk. I think it's after the asterisk, though. Just thought I'd clear that up, since if any mysteries exist regarding what program code does, the code isn't really getting reviewed, is it? |
Thanks for your explanation of how |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.