+2005-09-08 Christopher Aillon <caillon@redhat.com>
+
+ * shell/ev-window.c: (fullscreen_timeout_cb),
+ (fullscreen_set_timeout), (fullscreen_clear_timeout),
+ (ev_window_dispose):
+
+ leak fix: unref fullscreen_timeout_source before clearing it
+
2005-09-08 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* configure.ac, dvi/mdvi/Makefile.am:
g_object_set (window->priv->fullscreen_popup, "visible", FALSE, NULL);
ev_view_hide_cursor (EV_VIEW (window->priv->view));
+ g_source_unref (window->priv->fullscreen_timeout_source);
window->priv->fullscreen_timeout_source = NULL;
return FALSE;
{
GSource *source;
- if (window->priv->fullscreen_timeout_source != NULL)
+ if (window->priv->fullscreen_timeout_source != NULL) {
+ g_source_unref (window->priv->fullscreen_timeout_source);
g_source_destroy (window->priv->fullscreen_timeout_source);
+ }
source = g_timeout_source_new (1000);
g_source_set_callback (source, fullscreen_timeout_cb, window, NULL);
static void
fullscreen_clear_timeout (EvWindow *window)
{
- if (window->priv->fullscreen_timeout_source != NULL)
+ if (window->priv->fullscreen_timeout_source != NULL) {
+ g_source_unref (window->priv->fullscreen_timeout_source);
g_source_destroy (window->priv->fullscreen_timeout_source);
+ }
window->priv->fullscreen_timeout_source = NULL;
ev_view_show_cursor (EV_VIEW (window->priv->view));
}
if (window->priv->fullscreen_timeout_source) {
+ g_source_unref (window->priv->fullscreen_timeout_source);
g_source_destroy (window->priv->fullscreen_timeout_source);
window->priv->fullscreen_timeout_source = NULL;
}