[Github-comments] [geany/geany] build.c: Fix memory leak & make some small refactorings (#2271)

Nick Treleaven notifications at xxxxx
Thu Aug 29 16:28:12 UTC 2019


ntrel commented on this pull request.



> @@ -1547,25 +1542,17 @@ static void set_stop_button(gboolean stop)
 	GtkToolButton *run_button;
 
 	run_button = GTK_TOOL_BUTTON(toolbar_get_widget_by_name("Run"));
-	if (run_button != NULL)
-		button_stock_id = gtk_tool_button_get_stock_id(run_button);
+	if (!run_button) return;

@codebrainz Is this documented in HACKING?

-- 
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/pull/2271#discussion_r319162180
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190829/d6b558d5/attachment.html>


More information about the Github-comments mailing list