summaryrefslogtreecommitdiff
path: root/modules/theora
diff options
context:
space:
mode:
Diffstat (limited to 'modules/theora')
-rw-r--r--modules/theora/register_types.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/theora/register_types.cpp b/modules/theora/register_types.cpp
index 894952985e..4b50c3f146 100644
--- a/modules/theora/register_types.cpp
+++ b/modules/theora/register_types.cpp
@@ -45,8 +45,5 @@ void register_theora_types() {
void unregister_theora_types() {
ResourceLoader::remove_resource_format_loader(resource_loader_theora);
-
- if (resource_loader_theora.is_valid()) {
- resource_loader_theora.unref();
- }
+ resource_loader_theora.unref();
}