diff src/gtkimhtml.c @ 4764:b0367d56b608

[gaim-migrate @ 5082] I'm still not totally happy with the tooltips, but at least now they don't leak. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 14 Mar 2003 06:21:40 +0000
parents 85637881b342
children 677d3cb193a1
line wrap: on
line diff
--- a/src/gtkimhtml.c	Fri Mar 14 06:13:48 2003 +0000
+++ b/src/gtkimhtml.c	Fri Mar 14 06:21:40 2003 +0000
@@ -52,9 +52,11 @@
 
 #define TOOLTIP_TIMEOUT 500
 
+static gboolean gtk_motion_event_notify(GtkWidget *imhtml, GdkEventMotion *event, gpointer user_data);
+
+
 static gint gtk_imhtml_tip (gpointer data);
 
-
 /* POINT_SIZE converts from AIM font sizes to point sizes.  It probably should be redone in such a
  * way that it base the sizes off the default font size rather than using arbitrary font sizes. */
 #define MAX_FONT_SIZE 7
@@ -1236,7 +1238,7 @@
 	gtk_paint_layout (imhtml->tip_window->style, imhtml->tip_window->window, GTK_STATE_NORMAL,
 					  FALSE, NULL, imhtml->tip_window, NULL, 4, 4, layout);
 
-	g_free(layout);
+	g_object_unref(layout);
 	return FALSE;
 }
 
@@ -1308,7 +1310,7 @@
 	gtk_window_move (GTK_WINDOW(imhtml->tip_window), x, y);
 
 	pango_font_metrics_unref(font);
-	g_free(layout);
+	g_object_unref (layout);
 
 	return FALSE;
 }