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

Added CoTaskAllocMemory to Ole32 #333

Closed
wants to merge 2 commits into from

Conversation

msteiger
Copy link
Contributor

No description provided.


assertTrue(ptr.longValue() != 0);

ptr = Ole32.INSTANCE.CoTaskMemRealloc(ptr, new SIZE_T(128));
Copy link
Member

Choose a reason for hiding this comment

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

This is redundant with above, except for the size, no? And you leak the first one. You should just remove it.

Copy link
Member

Choose a reason for hiding this comment

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

Oh sorry, didn't see it's a Realloc ....

@msteiger
Copy link
Contributor Author

Should be fixed now.

@dblock
Copy link
Member

dblock commented May 23, 2014

Merged via 21d459b, thank you.

@dblock dblock closed this May 23, 2014
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.

2 participants