Skip to content

Commit 35af140

Browse files
committed
correct fix for #2159
1 parent 1d402d0 commit 35af140

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎src/timer.c‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ VOID _app_timer_reset (
111111
_Inout_ PITEM_APP ptr_app
112112
)
113113
{
114+
_wfp_destroyfilters_array (_wfp_getenginehandle (), ptr_app->guids, DBG_ARG);
115+
114116
ptr_app->is_enabled = FALSE;
115117
ptr_app->is_haveerrors = FALSE;
116118

@@ -146,7 +148,6 @@ VOID NTAPI _app_timer_callback (
146148
WCHAR buffer[0x100];
147149
PR_STRING display_name;
148150
PITEM_APP ptr_app;
149-
PR_LIST rules;
150151
HWND hwnd;
151152
ULONG icon_id = NIIF_INFO;
152153
HRESULT status;
@@ -162,12 +163,6 @@ VOID NTAPI _app_timer_callback (
162163

163164
_app_timer_reset (hwnd, ptr_app);
164165

165-
rules = _r_obj_createlist (0x01, NULL);
166-
167-
_r_obj_addlistitem (rules, ptr_app, NULL);
168-
169-
_wfp_createappfilters (_wfp_getenginehandle (), rules, DBG_ARG, FALSE);
170-
171166
if (hwnd)
172167
_app_listview_updateby_id (hwnd, ptr_app->type, PR_UPDATE_TYPE | PR_UPDATE_FORCE);
173168

@@ -192,5 +187,4 @@ VOID NTAPI _app_timer_callback (
192187
CoUninitialize ();
193188

194189
_r_obj_dereference (ptr_app);
195-
_r_obj_dereference (rules);
196190
}

0 commit comments

Comments
 (0)