Skip to content

Commit c7110ea

Browse files
committed
environment.js: Fix is_finalized() check.
Cjs became more specific about object states, but the result is the same. This should squelch some excess spamming in the logs.
1 parent a4d5c30 commit c7110ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ui/environment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function init() {
284284
// Add method to determine if a GObject is finalized - needed to prevent accessing
285285
// objects that have been disposed in C code.
286286
GObject.Object.prototype.is_finalized = function is_finalized() {
287-
return this._toString().includes('FINALIZED');
287+
return this._toString().includes('DISPOSED');
288288
};
289289
// Override destroy so it checks if its finalized before calling the real destroy method.
290290
Clutter.Actor.prototype._destroy = Clutter.Actor.prototype.destroy;

0 commit comments

Comments
 (0)