[Github-comments] [geany/geany-plugins] Debugger: Fix cppcheck false positive warning (#1017)

Enrico Tröger notifications at xxxxx
Sat Oct 24 09:01:22 UTC 2020


@eht16 commented on this pull request.



> @@ -265,11 +264,9 @@ void tpage_pack_widgets(gboolean tabbed)
 
 	if (oldroot)
 	{
-		int i = 0;
-		while (widgets[i])
+		for (int i = 0; widgets[i]; i++)
 		{
 			g_object_unref(*widgets[i]);

It is.
Only `gtk_container_remove(GTK_CONTAINER(gtk_widget_get_parent(*widgets[i])), *widgets[i]);` was problematic, I'm not sure why only here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1017#discussion_r511350293
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201024/d4faa22a/attachment.htm>


More information about the Github-comments mailing list