On Mon, 22 Dec 2008 22:09:04 +0000 frlan@users.sourceforge.net wrote:
GeanyLipsum: free doc pointer after usage
Modified Paths:
trunk/geanylipsum/src/geanylipsum.c
Modified: trunk/geanylipsum/src/geanylipsum.c
--- trunk/geanylipsum/src/geanylipsum.c 2008-12-22 22:08:39 UTC (rev 352) +++ trunk/geanylipsum/src/geanylipsum.c 2008-12-22 22:09:04 UTC (rev 353) @@ -112,6 +112,7 @@ if (doc != NULL) { ft = doc->file_type;
g_free(doc);
Why are you doing that? Geany manages document memory - this will probably cause a segfault when Geany later tries to write to unallocated memory.
Regards, Nick
Sorry, didn't mean to send that to the ML, oops (sylpheed set the reply address).
Regards, Nick