im.pidgin.pidgin.next.minor: 58a7a68ec9891c7989ec16c0a3d52f9756de75db

sadrul at pidgin.im sadrul at pidgin.im
Thu Nov 1 11:40:40 EDT 2007


-----------------------------------------------------------------
Revision: 58a7a68ec9891c7989ec16c0a3d52f9756de75db
Ancestor: c4b852c95d4ed3850a498a1ae2c06d07d511b61f
Author: sadrul at pidgin.im
Date: 2007-10-31T18:13:53
Branch: im.pidgin.pidgin.next.minor

Modified files:
        finch/libgnt/gntbutton.c

ChangeLog: 

Buttons were leaking all this time!
It's a good thing there ain't too many of them in finch!

-------------- next part --------------
============================================================
--- finch/libgnt/gntbutton.c	44cb5ee19114509550f899c90310cae65fd5ebc3
+++ finch/libgnt/gntbutton.c	f58b015839409d9ac55ff85be81b61cd0d22448c
@@ -98,6 +98,14 @@ static void
 }
 
 static void
+gnt_button_destroy(GntWidget *widget)
+{
+	GntButton *button = GNT_BUTTON(widget);
+	g_free(button->priv->text);
+	g_free(button->priv);
+}
+
+static void
 gnt_button_class_init(GntWidgetClass *klass)
 {
 	char *style;
@@ -108,6 +116,7 @@ gnt_button_class_init(GntWidgetClass *kl
 	parent_class->size_request = gnt_button_size_request;
 	parent_class->key_pressed = gnt_button_key_pressed;
 	parent_class->clicked = gnt_button_clicked;
+	parent_class->destroy = gnt_button_destroy;
 
 	style = gnt_style_get_from_name(NULL, "small-button");
 	small_button = gnt_style_parse_bool(style);


More information about the Commits mailing list