WebKit2.UserScript.prototype.unref

function unref(): void {
    // Gjs wrapper for webkit_user_script_unref()
}
  

Atomically decrements the reference count of user_script by one. If the reference count drops to 0, all memory allocated by WebKit2.UserScript is released. This function is MT-safe and may be called from any thread.

Since 2.6