From 14b0f47381e6009c3c611d07f1afef5bfbd68a64 Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Sun, 14 Mar 1999 23:57:26 +0000 Subject: [PATCH] fix another mem leak. --- widget/src/gtk/nsGtkEventHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/src/gtk/nsGtkEventHandler.cpp b/widget/src/gtk/nsGtkEventHandler.cpp index ac5bcce4947..728aeb6f7b2 100644 --- a/widget/src/gtk/nsGtkEventHandler.cpp +++ b/widget/src/gtk/nsGtkEventHandler.cpp @@ -334,8 +334,9 @@ idle_resize_cb(gpointer data) // info->widget); info->widget->OnResize(*info->rect); NS_RELEASE(info->widget); - // FIXME free info->rect + delete info->rect; g_free(info); + // this will return 0 if the list is // empty. that will remove this idle timeout. // if it's > 1 then it will be restarted and