forked from AuroraMiddleware/gtk
Fixed memory leak at window closing in DirectFB backend, patch provided by Simon Lanzmich
svn path=/trunk/; revision=18459
This commit is contained in:
parent
508baa258c
commit
34dfd591da
@ -1,3 +1,10 @@
|
||||
2007-07-12 Attilio Fiandrotti <attilio.fiandrotti@gmail.com>
|
||||
|
||||
* gdk/directfb/gdkevents-directfb.c:
|
||||
* gdk/directfb/gdkwindow-directfb.c:
|
||||
* gdk/directfb/gdkprivate-directfb.h: Fixed memory leak at window closing,
|
||||
patch provided by Simon Lanzmich
|
||||
|
||||
Thu Jul 12 18:03:02 2007 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_threads_add_idle_full): clarified documentation example.
|
||||
|
@ -315,6 +315,25 @@ gdk_directfb_event_windows_add (GdkWindow *window)
|
||||
impl->window->CreateEventBuffer (impl->window, &EventBuffer);
|
||||
}
|
||||
|
||||
#if (DIRECTFB_MAJOR_VERSION >= 1)
|
||||
void
|
||||
gdk_directfb_event_windows_remove (GdkWindow *window)
|
||||
{
|
||||
GdkWindowImplDirectFB *impl;
|
||||
|
||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||
|
||||
impl = GDK_WINDOW_IMPL_DIRECTFB (GDK_WINDOW_OBJECT (window)->impl);
|
||||
|
||||
if (!impl->window)
|
||||
return;
|
||||
|
||||
if (EventBuffer)
|
||||
impl->window->DetachEventBuffer (impl->window, EventBuffer);
|
||||
/* FIXME: should we warn if (! EventBuffer) ? */
|
||||
}
|
||||
#endif
|
||||
|
||||
GdkWindow *
|
||||
gdk_directfb_child_at (GdkWindow *window,
|
||||
gint *winx,
|
||||
|
@ -231,6 +231,9 @@ GdkImage* _gdk_directfb_copy_to_image (GdkDrawable *drawable,
|
||||
gint height);
|
||||
|
||||
void gdk_directfb_event_windows_add (GdkWindow *window);
|
||||
#if (DIRECTFB_MAJOR_VERSION >= 1)
|
||||
void gdk_directfb_event_windows_remove (GdkWindow *window);
|
||||
#endif
|
||||
|
||||
GdkGrabStatus gdk_directfb_pointer_grab (GdkWindow *window,
|
||||
gint owner_events,
|
||||
|
@ -600,7 +600,9 @@ _gdk_windowing_window_destroy (GdkWindow *window,
|
||||
impl = GDK_WINDOW_IMPL_DIRECTFB (private->impl);
|
||||
|
||||
_gdk_selection_window_destroyed (window);
|
||||
|
||||
#if (DIRECTFB_MAJOR_VERSION >= 1)
|
||||
gdk_directfb_event_windows_remove (window);
|
||||
#endif
|
||||
if (window == _gdk_directfb_pointer_grab_window)
|
||||
gdk_pointer_ungrab (GDK_CURRENT_TIME);
|
||||
if (window == _gdk_directfb_keyboard_grab_window)
|
||||
|
Loading…
Reference in New Issue
Block a user