[Github-comments] [geany-plugins] Add new "Lineoperations" plugin (#324)

Sylvan Mostert notifications at xxxxx
Tue Jan 12 18:33:30 UTC 2016


> +				for(j = 0; lines[i][j] != '\0'; j++)
> +					newfile[nfposn++] = lines[i][j];
> +				k = i;
> +			}
> +
> +		newfile[nfposn] = '\0';
> +		sci_set_text(doc->editor->sci, newfile);	// set new document
> +
> +	}
> +
> +
> +	// free used memory
> +	for(i = 0; i < numlines; i++)
> +		if(lines[i]) g_free(lines[i]);
> +	if(lines)   g_free(lines);
> +	if(newfile) g_free(newfile);

Yup my bad, I deleted all NULL tests before g_free();

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/324/files#r49493747
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160112/66bf48f2/attachment.html>


More information about the Github-comments mailing list