Kaydet (Commit) 9a314421 authored tarafından Michael Stahl's avatar Michael Stahl

vcl: fix valgrind warning in g_lo_action_group_query_action

Change-Id: I0755254d4d6d24689d4f5b39c3a6c9a29ae53b99
üst 49d320c6
......@@ -153,6 +153,15 @@ g_lo_action_group_query_action (GActionGroup *group,
GLOActionGroup *lo_group = G_LO_ACTION_GROUP (group);
GLOAction* action;
if (enabled)
{
GtkSalFrame* pFrame = lo_group->priv->frame;
if (pFrame) {
pFrame->EnsureDbusMenuSynced();
}
}
// note: EnsureDbusMenuSynced could have deleted the action!
action = G_LO_ACTION (g_hash_table_lookup (lo_group->priv->table, action_name));
if (action == nullptr)
......@@ -160,10 +169,6 @@ g_lo_action_group_query_action (GActionGroup *group,
if (enabled)
{
GtkSalFrame* pFrame = lo_group->priv->frame;
if (pFrame) {
pFrame->EnsureDbusMenuSynced();
}
*enabled = action->enabled;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment