]> git.sesse.net Git - vlc/commitdiff
don't try to free a non existing string
authorGeoffroy Couprie <geo.couprie@gmail.com>
Mon, 22 Sep 2008 09:51:22 +0000 (11:51 +0200)
committerGeoffroy Couprie <geo.couprie@gmail.com>
Mon, 22 Sep 2008 09:51:22 +0000 (11:51 +0200)
src/modules/modules.c

index 1c3001f6323d7ca349f3f3f6c201ccd898ee9a99..e9ea5f7cf8e7981dea77e35a7c68864e5c908289 100644 (file)
@@ -1347,11 +1347,10 @@ static void UndupModule( module_t *p_module )
         free( *pp_shortcut );
     }
 
-    FREENULL( p_module->psz_object_name );
     free( p_module->psz_capability );
-    free( p_module->psz_shortname );
+    FREENULL( p_module->psz_shortname );
     free( p_module->psz_longname );
-    free( p_module->psz_help );
+    FREENULL( p_module->psz_help );
 }
 
 #endif /* HAVE_DYNAMIC_PLUGINS */