Mercurial > pidgin
changeset 759:9389216aae29
[gaim-migrate @ 769]
trying to plug leaks
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 24 Aug 2000 23:20:29 +0000 |
parents | 93f4221b4446 |
children | d2eef8a40a77 |
files | src/toc.c src/util.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/toc.c Thu Aug 24 22:28:21 2000 +0000 +++ b/src/toc.c Thu Aug 24 23:20:29 2000 +0000 @@ -914,6 +914,7 @@ d = d->next; } g_free(n); + g_free(name); if (!d) permit = g_list_append(permit, name); } else if (*c == 'd') {
--- a/src/util.c Thu Aug 24 22:28:21 2000 +0000 +++ b/src/util.c Thu Aug 24 23:20:29 2000 +0000 @@ -936,6 +936,7 @@ return button; } +static GtkTooltips *tips = NULL; GtkWidget *picture_button2(GtkWidget *window, char *text, char **xpm, short showtext) { GtkWidget *button; @@ -944,9 +945,8 @@ GdkPixmap *pm; GtkWidget *pixmap; GtkWidget *label; - GtkTooltips *tips; - tips = gtk_tooltips_new(); + if (!tips) tips = gtk_tooltips_new(); button = gtk_button_new(); if (display_options & OPT_DISP_COOL_LOOK) gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);