event.c: fix memory leak in notify_event_del.
This commit is contained in:
parent
18e9de6bc2
commit
ed8891000f
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ notify_event* notify_event_new() {
|
|||
*/
|
||||
void notify_event_del(notify_event *event) {
|
||||
|
||||
if (event)
|
||||
if (event == NULL)
|
||||
return;
|
||||
|
||||
dealloc_data(event);
|
||||
|
|
|
|||
Reference in a new issue