1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-07 03:56:28 +02:00

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

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