Skip to content

Commit 80edde8

Browse files
committed
smarter
1 parent 5381b42 commit 80edde8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/functional/menus/Deeper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ createMenu()
106106
{
107107
shared_ptr<GMenuItem> item(g_menu_item_new("Save", "app.save"), &g_object_deleter);
108108
g_menu_append_item(fileMenu.get(), item.get());
109-
GSimpleAction *action = G_SIMPLE_ACTION(g_simple_action_new("save", NULL));
110-
g_simple_action_set_enabled(action, FALSE);
111-
g_action_map_add_action(G_ACTION_MAP(ag.get()), G_ACTION(action));
109+
shared_ptr<GSimpleAction> action(g_simple_action_new("save", NULL), &g_object_deleter);
110+
g_simple_action_set_enabled(action.get(), FALSE);
111+
g_action_map_add_action(G_ACTION_MAP(ag.get()), G_ACTION(action.get()));
112112
}
113113
{
114114
shared_ptr<GMenuItem> item(g_menu_item_new("Quit", "app.quit"), &g_object_deleter);

0 commit comments

Comments
 (0)