comparison src/protocols/msn/msn.c @ 6827:1cfbb731aa1f

[gaim-migrate @ 7372] Several fixes for attempted NULL pointer frees, and some MSNSLP fixes. Still not ready for use yet. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 14 Sep 2003 01:59:09 +0000
parents b4fe4c1023c6
children f03c0085c424
comparison
equal deleted inserted replaced
6826:2adf21e70601 6827:1cfbb731aa1f
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 #include <glib.h>
23 static void (*real_g_free)(gpointer) = g_free;
24
22 #include "msn.h" 25 #include "msn.h"
23 #include "accountopt.h" 26 #include "accountopt.h"
24 #include "msg.h" 27 #include "msg.h"
25 #include "page.h" 28 #include "page.h"
26 #include "prefs.h" 29 #include "prefs.h"
33 #define BUDDY_ALIAS_MAXLEN 388 36 #define BUDDY_ALIAS_MAXLEN 388
34 37
35 static GaimPlugin *my_protocol = NULL; 38 static GaimPlugin *my_protocol = NULL;
36 39
37 static char *msn_normalize(const char *str); 40 static char *msn_normalize(const char *str);
41
42 void
43 msn_free(void *ptr, const char *filename, int line)
44 {
45 gaim_debug_misc("msn", "Freeing pointer %p at %s:%d\n",
46 ptr, filename, line);
47 if (ptr == NULL)
48 abort();
49
50 real_g_free(ptr);
51 }
38 52
39 typedef struct 53 typedef struct
40 { 54 {
41 GaimConnection *gc; 55 GaimConnection *gc;
42 const char *passport; 56 const char *passport;