emesene/emesene — pull request #1380 by c10ud (2012-06-29 12:15:12+00:00)
Title: Must.. unsubscribe all signals. Refs #1238

looks like this "solved" (code is messy!) the signals keeping subscriptions when session is closed.

this is __untested__ because i only used dummy session

objgraph still shows:
dict 4744 +262
instancemethod 519 +108
list 1772 +103
Signal 285 +95
ImageMenuItem 193 +51
tuple 2527 +45
function 10066 +40
builtin_function_or_method 2763 +38
Contact 99 +33
Account 93 +31

i think we're not freeing contacts, accounts and...well signals ;)
please take a look at this @sbte @pepeleproso @moneycat