Skip to content

Commit af29710

Browse files
committed
Fix: Added lifecycle cleanup for GIF providers.
1 parent eb90829 commit af29710

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

gnome-extensions/extension/features/GIF/logic/gifGenericProvider.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,13 @@ export class GifGenericProvider {
233233
if (!path || !obj) return null;
234234
return path.split('.').reduce((acc, part) => acc && acc[part], obj);
235235
}
236+
237+
/**
238+
* Release provider references.
239+
*/
240+
destroy() {
241+
this._def = null;
242+
this._httpService = null;
243+
this._settings = null;
244+
}
236245
}

0 commit comments

Comments
 (0)