[mutter] events: Don't bother free-guarding
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] events: Don't bother free-guarding
- Date: Mon, 29 Dec 2014 04:00:00 +0000 (UTC)
commit b10a017446f7c8623283637159833eb4388ecabf
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Dec 28 19:46:25 2014 -0800
events: Don't bother free-guarding
free already takes NULL just fine.
src/x11/events.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/x11/events.c b/src/x11/events.c
index 618692f..ca31153 100644
--- a/src/x11/events.c
+++ b/src/x11/events.c
@@ -657,9 +657,7 @@ meta_spew_event (MetaDisplay *display,
event->xany.serial);
g_free (winname);
-
- if (extra)
- g_free (extra);
+ g_free (extra);
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]