Comment 4 for bug 1270073

Revision history for this message
suresh (suresh-meetsme) wrote :

@Alvin,

Yes I am doing partial update, I have merged @Markus patch bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/11608.1.65 with my code (0.84.1).

@Markus,

I have applied the patch and it works perfectly fine, now could you please let me know in which file I need to make changes for creating object using new instead of g_new.

Apart from you patch what are the other necessary changes I need to make into the code to overcome the memory leak issue. I guess with new and delete method inkscape will eat less memory than g_object_ref/unref.

with g_object_ref/unref method used by inksape and memory leak, so it is a bug of glib or gtk? As per the gtk docs when there is ref. count became 0 it will automatically remove from the memory but this is not the case with Inkscape.

Please let me know the solution for old code(i.e. 0.48.1) to implement delete the object when ref count became 0.