qulogic/talkatu

Parents f4b49603848f
Children e7dc9f018169
Replace a g_clear_pointer with g_free and fix a typo in a comment.
--- a/demo/talkatudemowindow.c Fri Jul 12 06:16:40 2019 -0500
+++ b/demo/talkatudemowindow.c Mon Jul 15 02:25:33 2019 -0500
@@ -231,7 +231,7 @@
talkatu_demo_window_author_changed(GtkMenuItem *item, gpointer data) {
TalkatuDemoWindow *window = TALKATU_DEMO_WINDOW(data);
- g_clear_pointer(&window->author, g_free);
+ g_free(window->author);
window->author = g_strdup(gtk_menu_item_get_label(item));
}
@@ -246,7 +246,7 @@
gtk_menu_tool_button_set_menu(GTK_MENU_TOOL_BUTTON(window->author_button), window->author_menu);
- /* activate the first menu item to make sure it's label gets stored
+ /* activate the first menu item to make sure its label gets stored
* correctly.
*/
gtk_menu_item_activate(GTK_MENU_ITEM(window->author_menu_item));