From da08806fbfea06d179dd8fd6a8e78430b1cb5650 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sun, 7 May 2006 12:51:36 +0000 Subject: fix --- lib/base/ebase.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/base/ebase.cpp') diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp index f990f6b8..5dd8e0ae 100644 --- a/lib/base/ebase.cpp +++ b/lib/base/ebase.cpp @@ -185,7 +185,7 @@ int eMainloop::processOneEvent(unsigned int user_timeout, PyObject **res, PyObje } // build the poll aray - pollfd* pfd = new pollfd[fdcount]; // make new pollfd array + pollfd pfd[fdcount]; // make new pollfd array for (int i=0; i < nativecount; i++, fd_merged_it++) { @@ -271,7 +271,6 @@ int eMainloop::processOneEvent(unsigned int user_timeout, PyObject **res, PyObje ret = -1; /* don't assume the timeout has passed when we got a signal */ } } - delete [] pfd; /* when we not processed anything, check timers. */ if (!m_timer_list.empty()) -- cgit v1.2.3