Changeset 5583:afc93a693c8a in roaraudio


Ignore:
Timestamp:
07/22/12 00:04:54 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

avoid segfaul when para is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/roardl.c

    r5517 r5583  
    743743 } 
    744744 
    745  if ( lhandle->para->notifycore != NULL ) 
     745 if ( lhandle->para != NULL && lhandle->para->notifycore != NULL ) 
    746746  lhandle->context.notifycore = roar_notify_core_swap_global(lhandle->para->notifycore); 
    747747 
     
    761761 } 
    762762 
    763  if ( lhandle->para->notifycore != NULL ) { 
     763 if ( lhandle->para != NULL && lhandle->para->notifycore != NULL ) { 
    764764  roar_notify_core_unref(roar_notify_core_swap_global(lhandle->context.notifycore)); 
    765765  roar_notify_core_unref(lhandle->context.notifycore); 
Note: See TracChangeset for help on using the changeset viewer.