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

patchs for dbfree problem in python. #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swigwriter.vala
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public class SwigWriter : ValabindWriter {
extends += "%%extend %s {\n".printf (name);

if (freefun != null && freefun != "")
extends += "\t~%s() {\n\t\t%s(self);\n\t}\n".printf (name, freefun);
extends += "\t~%s() {\n\n\t}\n".printf (name); // we do not need a free, cause it will be done in the lib.
Copy link
Owner

Choose a reason for hiding this comment

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

i think this should be fixed in RList, SdbList or the APIs or VAPIs, but not this way because that introduces a memory leak. can you provide some examples of scripts that produce this error?


// NOTE if m.accept (this) is used, it might try other functions than visit_method
foreach (Method m in methods)
Expand Down