summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-03-11 23:45:39 +0100
committermbkma <[email protected]>2026-03-11 23:45:39 +0100
commit70e4e479002259cc473b4ae84245d139f00ce29f (patch)
treeebef67054763c3fea32be034307246faf4dd724e
parentd83ac7788e1ee6375a646269e9e83019164aef81 (diff)
downloadatril-memleak.tar.bz2
atril-memleak.tar.xz
fix memleaksmemleak
-rw-r--r--shell/ev-window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 1023f545..5d8b72bb 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2450,6 +2450,7 @@ ev_window_open_uri (EvWindow *ev_window,
if (!g_file_is_native (source_file) && !ev_window->priv->local_uri) {
ev_window_load_file_remote (ev_window, source_file);
+ g_object_unref (source_file);
} else {
ev_window_show_loading_message (ev_window);
g_object_unref (source_file);
@@ -2654,6 +2655,7 @@ query_remote_uri_mtime_cb (GFile *remote,
(GAsyncReadyCallback)reload_remote_copy_ready_cb,
ev_window);
g_object_unref (target_file);
+ g_object_unref (remote);
ev_window_show_progress_message (ev_window, 1,
(GSourceFunc)show_reloading_progress);
} else {
@@ -7141,7 +7143,7 @@ launch_action (EvWindow *window, EvLinkAction *action)
g_object_unref (app_info);
g_object_unref (file);
- /* FIXMEchpe: unref launch context? */
+ g_object_unref (context);
/* According to the PDF spec filename can be an executable. I'm not sure
allowing to launch executables is a good idea though. -- marco */