]> git.sesse.net Git - vlc/commitdiff
Revert "Fix memory leak"
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 22 Apr 2008 20:49:30 +0000 (22:49 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 22 Apr 2008 21:36:45 +0000 (23:36 +0200)
This breaks module aliasing.

This reverts commit 16afc89353c2f61e3dd671bd842540cdf3627193.

src/modules/modules.c

index 0b6b26c16cec76d0e8e36952c02163605cb182a3..92ba948e0fbf7b8f81498b27089437e9fdbb18cf 100644 (file)
@@ -646,7 +646,10 @@ found_shortcut:
         /* This assumes that p_this is the object which will be using the
          * module. That's not always the case ... but it is in most cases.
          */
-        p_this->psz_object_name = p_module->psz_object_name;
+        if( psz_alias )
+            p_this->psz_object_name = strdup( psz_alias );
+        else
+            p_this->psz_object_name = strdup( p_module->psz_object_name );
     }
 
     free( psz_shortcuts );