Commit e8e2bcf0 authored by Antoine Cellerier's avatar Antoine Cellerier

Revert "Fix memory leak"

This breaks module aliasing.

This reverts commit 16afc893.
parent e445caad
...@@ -646,7 +646,10 @@ found_shortcut: ...@@ -646,7 +646,10 @@ found_shortcut:
/* This assumes that p_this is the object which will be using the /* 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. * 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 ); free( psz_shortcuts );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment