Extra ref count on gdkwindow in gdk_event_translate



Hi,
    In the function gdk_event_translate there is a ref count added on
event->any.window. Because of this the ref count of gdkwindow ( for eg:
entry->text_area) increases by a huge amount (even on mouse movement over
the window). So when the window is destroyed using gdk_window_destroy ( for
eg: in unrealize of the widget) the ref count just reduces by 1 and the
window is never destroyed. This leaks a huge amount of memory everytime the
widget is realized and unrealized.
 Can someone tell me the reason why this ref count is added or some other
function which unrefs the same window after gdk_window_translate?

Thanks & Regards,
Swati



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]