summaryrefslogtreecommitdiff
path: root/gdk/quartz/gdkeventloop-quartz.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/quartz/gdkeventloop-quartz.c')
-rw-r--r--gdk/quartz/gdkeventloop-quartz.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdk/quartz/gdkeventloop-quartz.c b/gdk/quartz/gdkeventloop-quartz.c
index 89d9e1ee36..c1e66b8ab7 100644
--- a/gdk/quartz/gdkeventloop-quartz.c
+++ b/gdk/quartz/gdkeventloop-quartz.c
@@ -245,8 +245,7 @@ select_thread_func (void *arg)
*
* => POLLING_DESCRIPTORS: select thread picks up the file descriptors to begin polling
*/
- if (current_pollfds)
- g_free (current_pollfds);
+ g_free (current_pollfds);
current_pollfds = next_pollfds;
current_n_pollfds = next_n_pollfds;