mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
cally-util: Don't free a NULL pointer
The only place key_event can not be NULL is in this branch. Spotted by Coverity. https://bugzilla.gnome.org/show_bug.cgi?id=689496
This commit is contained in:
parent
184b8c6fa6
commit
5aca3c4992
@ -358,10 +358,10 @@ cally_key_snooper (ClutterActor *actor,
|
||||
/* func data is inside the hash table */
|
||||
consumed = g_hash_table_foreach_steal (new_hash, notify_hf, key_event);
|
||||
g_hash_table_destroy (new_hash);
|
||||
}
|
||||
|
||||
g_free (key_event->string);
|
||||
g_free (key_event);
|
||||
g_free (key_event->string);
|
||||
g_free (key_event);
|
||||
}
|
||||
|
||||
return (consumed ? 1 : 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user