[Geany] SF.net SVN: geany-plugins:[353] trunk/geanylipsum/src/geanylipsum.c
Nick Treleaven
nick.treleaven at xxxxx
Wed Dec 24 12:46:30 UTC 2008
On Mon, 22 Dec 2008 22:09:04 +0000
frlan at 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
More information about the Users
mailing list