Autochange Buddy Icon
Mark Doliner
mark at kingant.net
Mon Jan 28 23:23:00 EST 2008
On Tue, 29 Jan 2008 01:29:39 +0100, Matteo Landi wrote
> static void
> init_plugin (PurplePlugin *plugin)
> {
> char *userdir;
>
> userdir = (char *)purple_user_dir ();
> purple_prefs_add_none (PREF_PREFIX);
> purple_prefs_add_string (PREF_PATH, userdir);
> purple_prefs_add_int (PREF_REFRESH, 5);
> purple_prefs_add_bool (PREF_RECURSIVE, FALSE);
> free (userdir);
> }
What makes you think you're supposed to free userdir? There is some pretty
extension documentation about the libpurple API at
http://developer.pidgin.im/doxygen/. That page happens to be down you can
obtain the same documentation by running "make docs" in our source tree.
-Mark
More information about the Devel
mailing list