diff libpurple/protocols/myspace/session.h @ 29367:e137c1fc216a

Check if memory has been freed by looking at its contents does not work 100% of the time. If any of these functions are called with an invalid object, then the correct fix is to determine why the function was called and prevent it from being called.
author Mark Doliner <mark@kingant.net>
date Fri, 05 Feb 2010 01:18:18 +0000
parents 1d77f138847b
children a5f50581b7c0
line wrap: on
line diff
--- a/libpurple/protocols/myspace/session.h	Thu Feb 04 23:03:24 2010 +0000
+++ b/libpurple/protocols/myspace/session.h	Fri Feb 05 01:18:18 2010 +0000
@@ -54,9 +54,6 @@
 	guint inbox_handle;                 /**< The handle for the mail check timer */
 } MsimSession;
 
-/* Check if an MsimSession is valid */
-#define MSIM_SESSION_VALID(s) (session != NULL && session->magic == MSIM_SESSION_STRUCT_MAGIC)
-
 MsimSession *msim_session_new(PurpleAccount *acct);
 void msim_session_destroy(MsimSession *session);