On Mon, 22 Dec 2008 22:09:04 +0000 [email protected] 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 _______________________________________________ Geany mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
