]> Pileus Git - ~andy/gtk/commitdiff
Plug memory leak on Win32.
authorTor Lillqvist <tml@novell.com>
Fri, 4 Nov 2005 00:37:31 +0000 (00:37 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 4 Nov 2005 00:37:31 +0000 (00:37 +0000)
2005-11-04  Tor Lillqvist  <tml@novell.com>

* gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
leak on Win32.

ChangeLog
ChangeLog.pre-2-10
gtk/gtkstatusicon.c

index e6c79bfe1d005ba4375c5810b04c72d25daf8357..ecad919859058fc4cd2355c486ed6ae899cc4c62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-04  Tor Lillqvist  <tml@novell.com>
+
+       * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
+       leak on Win32.
+
 2005-11-03  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
index e6c79bfe1d005ba4375c5810b04c72d25daf8357..ecad919859058fc4cd2355c486ed6ae899cc4c62 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-04  Tor Lillqvist  <tml@novell.com>
+
+       * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
+       leak on Win32.
+
 2005-11-03  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
index a745a255cdb8f0d260ac46504e64fe110922e2af..18a504e13837b616a2009370696f15905b31d6e8 100755 (executable)
@@ -1273,10 +1273,12 @@ gtk_status_icon_set_tooltip (GtkStatusIcon *status_icon,
   else
     {
       WCHAR *wcs = g_utf8_to_utf16 (tooltip_text, -1, NULL, NULL, NULL);
+
       status_icon->priv->nid.uFlags |= NIF_TIP;
       wcsncpy (status_icon->priv->nid.szTip, wcs,
               G_N_ELEMENTS (status_icon->priv->nid.szTip) - 1);
       status_icon->priv->nid.szTip[G_N_ELEMENTS (status_icon->priv->nid.szTip) - 1] = 0;
+      g_free (wcs);
     }
   if (status_icon->priv->nid.hWnd != NULL && status_icon->priv->visible)
     if (!Shell_NotifyIconW (NIM_MODIFY, &status_icon->priv->nid))