Fixed buddy.pyx return types and plugin.pyx list free.
authorRagner Magalhaes <ragner.magalhaes@openbossa.org>
Tue, 2 Dec 2008 20:39:51 +0000 (20:39 +0000)
committerAnderson Briglia <anderson.briglia@openbossa.org>
Sat, 28 Feb 2009 21:11:12 +0000 (17:11 -0400)
FIXES:
 - Fixed buddy.pyx return types.
 - Fixed plugin.pyx list free.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1334 596f6dd7-e928-0410-a184-9e12fd12cf7e

buddy.pyx
plugin.pyx

index d12fd58..8137d26 100644 (file)
--- a/buddy.pyx
+++ b/buddy.pyx
@@ -30,7 +30,7 @@ cdef class Buddy:
         self.__buddy = blist.c_purple_buddy_new(<account.PurpleAccount *>acc.__account, scr, alias)
 
     def get_alias(self):
-        return blist.c_purple_buddy_get_alias_only(self.__buddy)
+        return <char *>blist.c_purple_buddy_get_alias_only(self.__buddy)
 
     def get_name(self):
-        return blist.c_purple_buddy_get_name(self.__buddy)
+        return <char *>blist.c_purple_buddy_get_name(self.__buddy)
index 020fde1..0ea893f 100644 (file)
@@ -58,5 +58,6 @@ cdef class Plugins:
                 if p:
                     protocols += [p]
             iter = iter.next
+        glib.g_list_free(iter)
         self.protocols = protocols
         return protocols