dbus: Add another memory allocation failure check

This commit is contained in:
Mirsal Ennaime 2013-02-07 03:54:11 +01:00
parent aba4767f27
commit b1bb9b5436
1 changed files with 6 additions and 0 deletions

View File

@ -855,6 +855,12 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
i_properties = vlc_dictionary_keys_count( p_changed_properties );
ppsz_properties = vlc_dictionary_all_keys( p_changed_properties );
if( unlikely(!ppsz_properties) )
{
dbus_message_iter_abandon_container( &args, &invalidated_properties );
return DBUS_HANDLER_RESULT_NEED_MEMORY;
}
for( int i = 0; i < i_properties; i++ )
{
PROPERTY_MAPPING_BEGIN