gobjectification: f1583da1: reset the cipher when it's finalized. t...
grim at pidgin.im
grim at pidgin.im
Mon Jul 20 00:25:35 EDT 2009
-----------------------------------------------------------------
Revision: f1583da109b3ebcb9a5e1da3fe423b97037e5773
Ancestor: 9083d5ebc2aa6c8dade1b7f301bb7ccb2c5688fd
Author: grim at pidgin.im
Date: 2009-07-20T00:23:33
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/f1583da109b3ebcb9a5e1da3fe423b97037e5773
Modified files:
libpurple/cipher.c
ChangeLog:
reset the cipher when it's finalized. this is a helper so all of the subclass don't have to manually do it.
-------------- next part --------------
============================================================
--- libpurple/cipher.c 2bc190daf88a7cb21818ef59ead07b22c6fc39c4
+++ libpurple/cipher.c b20a384b1a7271cf355c6c533a3beb3ab2352efb
@@ -35,8 +35,19 @@ static void
* Object Stuff
*****************************************************************************/
static void
+purple_cipher_finalize(obj) {
+ purple_cipher_reset(obj);
+
+ G_OBJECT_CLASS(parent_class)->finalize(obj);
+}
+
+static void
purple_cipher_class_init(PurpleCipherClass *klass) {
+ GObjectClass *obj_class = G_OBJECT_CLASS(klass);
+
parent_class = g_type_class_peek_parent(klass);
+
+ obj_class->finalize = purple_cipher_finalize;
}
/******************************************************************************
More information about the Commits
mailing list