gnome-shell/src
Sebastian Keller fb75120a39 shell/app: Fix small memory leak in get_pids()
The iterator was pointing to NULL when going out of scope, leading to
autofree not clearing the list.

==300183== 32 bytes in 2 blocks are definitely lost in loss record 14,798 of 38,939
==300183==    at 0x484586F: malloc (vg_replace_malloc.c:381)
==300183==    by 0x4D7D980: g_malloc (gmem.c:127)
==300183==    by 0x4D95AB3: g_slice_alloc (gslice.c:1074)
==300183==    by 0x4D96D96: g_slist_prepend (gslist.c:282)
==300183==    by 0x487854F: shell_app_get_windows (shell-app.c:794)
==300183==    by 0x48791A1: shell_app_get_pids (shell-app.c:1201)
==300183==    by 0x488B293: shell_window_tracker_get_app_from_pid (shell-window-tracker.c:702)
==300183==    by 0x488B632: get_app_from_window_pid (shell-window-tracker.c:370)
==300183==    by 0x488B632: get_app_for_window (shell-window-tracker.c:436)
==300183==    by 0x488B632: track_window (shell-window-tracker.c:549)
==300183==    by 0x4CDBB75: g_cclosure_marshal_VOID__OBJECTv (gmarshal.c:1910)
==300183==    by 0x4CD8BE9: _g_closure_invoke_va (gclosure.c:893)
==300183==    by 0x4CF2A28: g_signal_emit_valist (gsignal.c:3406)
==300183==    by 0x4CF2C2C: g_signal_emit (gsignal.c:3553)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2367>
2022-07-06 18:13:46 +00:00
..
calendar-server calendar-server: Read timezone from the calendar, not its timezone cache 2022-02-03 17:18:48 +00:00
hotplug-sniffer hotplug-sniffer: Drop "volatile" from g_once_init_enter() sentinels 2021-03-22 11:12:23 +00:00
st st: Only notify on property changes 2022-06-08 14:16:28 +00:00
tray
data-to-c.pl
gnome-shell-extension-prefs
gnome-shell-extension-tool.in
gnome-shell-perf-tool.in *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
gnome-shell-plugin.c init: Set console log domain 2021-09-01 14:55:47 +00:00
gnome-shell-portal-helper.c build: Don't modify typelib search path in tools 2018-08-14 17:28:03 +00:00
gtkactionmuxer.c
gtkactionmuxer.h
gtkactionobservable.c
gtkactionobservable.h
gtkactionobserver.c
gtkactionobserver.h
main.c main: Define a custom log writer to dump on structured messages 2022-07-06 17:14:56 +00:00
meson.build build: Remove gst dependencies 2022-05-20 12:00:22 +00:00
org.gtk.Application.xml
run-js-test.c tests: Don't initialize Clutter 2019-08-27 15:30:51 +03:00
shell-action-modes.h
shell-app-cache-private.h
shell-app-cache.c
shell-app-private.h
shell-app-system-private.h
shell-app-system.c
shell-app-system.h
shell-app-usage.c
shell-app-usage.h
shell-app.c shell/app: Fix small memory leak in get_pids() 2022-07-06 18:13:46 +00:00
shell-app.h
shell-blur-effect.c shell: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate 2022-02-10 13:09:37 +00:00
shell-blur-effect.h
shell-embedded-window-private.h
shell-embedded-window.c shell: Drop dependency on ClutterX11 headers/gir 2021-06-29 22:47:41 +00:00
shell-embedded-window.h
shell-global-private.h
shell-global.c shell: Do not create a systemd scope when using D-Bus app launching 2022-06-07 14:35:02 +00:00
shell-global.h shell: Drop shell_global_begin/end_modal() 2022-01-29 02:19:14 +01:00
shell-glsl-effect.c glsl-effect: Allow to set uniform matrices 2022-02-08 21:55:31 +01:00
shell-glsl-effect.h glsl-effect: Allow to set uniform matrices 2022-02-08 21:55:31 +01:00
shell-gtk-embed.c
shell-gtk-embed.h
shell-invert-lightness-effect.c Always assume GLSL is supported 2021-09-21 16:37:01 +02:00
shell-invert-lightness-effect.h
shell-keyring-prompt.c shell: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate 2022-02-10 13:09:37 +00:00
shell-keyring-prompt.h
shell-mount-operation.c
shell-mount-operation.h
shell-network-agent.c
shell-network-agent.h shell/network-agent: Add method to add VPN secrets to agent response 2020-12-25 11:43:13 +01:00
shell-perf-helper.c
shell-perf-log.c src/shell: Plug some small leaks 2021-08-13 15:16:54 +02:00
shell-perf-log.h
shell-polkit-authentication-agent.c
shell-polkit-authentication-agent.h build: Do not redefine polkit autocleanup 2022-05-17 14:04:01 +00:00
shell-screenshot.c screenshot-ui: Use ImageContent for notification icon 2022-01-27 22:25:42 +00:00
shell-screenshot.h screenshot-ui: Use ImageContent for notification icon 2022-01-27 22:25:42 +00:00
shell-secure-text-buffer.c
shell-secure-text-buffer.h
shell-square-bin.c iconGrid: Subclass a C actor for BaseIcon 2021-03-13 22:13:25 +00:00
shell-square-bin.h iconGrid: Subclass a C actor for BaseIcon 2021-03-13 22:13:25 +00:00
shell-stack.c
shell-stack.h
shell-tray-icon.c
shell-tray-icon.h
shell-tray-manager.c shell: Drop dependency on ClutterX11 headers/gir 2021-06-29 22:47:41 +00:00
shell-tray-manager.h
shell-util.c shell: Shuffle ifdef to fix !HAVE_SYSTEMD build 2022-02-13 12:06:11 +00:00
shell-util.h shell: Add call to check the existence of a systemd unit 2022-02-11 23:51:24 +00:00
shell-window-preview-layout.c shell/window-preview-layout: Fix memory leaks 2022-04-22 15:02:29 +00:00
shell-window-preview-layout.h Move WindowPreviewLayout from JS to C 2021-03-09 15:40:49 +00:00
shell-window-preview.c shell: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate 2022-02-10 13:09:37 +00:00
shell-window-preview.h windowPreview: Subclass a C actor 2021-03-09 15:40:49 +00:00
shell-window-tracker-private.h
shell-window-tracker.c shell: Use g_object_notify_by_pspec() where possible 2022-02-10 13:09:37 +00:00
shell-window-tracker.h
shell-wm-private.h
shell-wm.c
shell-wm.h