kuuko pushed a commit to branch master.

commit 491400b1005f5f21f827bbb0c62a2384a9442edb
Author: Kai Huuhko <[email protected]>
Date:   Mon Apr 15 08:34:41 2013 +0000

    Elementary: Free Configuration profiles list after converting it to
    python list.
---
 efl/elementary/configuration.pyx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/efl/elementary/configuration.pyx b/efl/elementary/configuration.pyx
index f4ddefd..57ee73e 100644
--- a/efl/elementary/configuration.pyx
+++ b/efl/elementary/configuration.pyx
@@ -189,7 +189,9 @@ cdef class Configuration(object):
         """
         def __get__(self):
             cdef Eina_List *lst = elm_config_profile_list_get()
-            return tuple(convert_eina_list_strings_to_python_list(lst))
+            ret = tuple(convert_eina_list_strings_to_python_list(lst))
+            elm_config_profile_list_free(lst)
+            return ret
 
     property scroll_bounce_enabled:
         """Whether scrollers should bounce when they reach their

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to