After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357566 - [x11] Invalid unref for input windows
[x11] Invalid unref for input windows
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-09-25 07:21 UTC by Tommi Komulainen
Modified: 2006-09-25 09:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tommi Komulainen 2006-09-25 07:21:18 UTC
gdk/x11/gdkinput.c (gdk_input_set_extension_events):
      iw = g_new(GdkInputWindow,1);
      [...]
      display_x11->input_windows = g_list_append(display_x11->input_windows,iw);


gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize):
  g_list_foreach (display_x11->input_windows, (GFunc) g_object_unref, NULL);


The g_object_unref should be g_free instead.
Comment 1 Michael Natterer 2006-09-25 09:59:26 UTC
Fixed in 2-10 and HEAD:

2006-09-25  Michael Natterer  <mitch@imendio.com>

	* gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free
	display->input_windows with g_free(), not g_object_unref()
	(#357566, Tommi Komulainen).