Changeset 25850


Ignore:
Timestamp:
02/03/14 10:35:53 (8 years ago)
Author:
gost
Message:

[plugins] autotimer.... fix error reboot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/autotimer/autotimer.c

    r25741 r25850  
    346346        }
    347347        free(buf); buf = NULL;
    348         search1->channelname = NULL;
    349         search1->search = NULL;
    350         search2->channelname = NULL;
    351         search2->search = NULL;
    352         free(search1); search1 = NULL;
    353         free(search2); search2 = NULL;
     348        if(search1 != NULL) {
     349                search1->channelname = NULL;
     350                search1->search = NULL;
     351                free(search1); search1 = NULL;
     352        }
     353        if(search2 != NULL) {
     354                search2->channelname = NULL;
     355                search2->search = NULL;
     356                free(search2); search2 = NULL;
     357        }
    354358        autotimerthread = NULL;
    355359        addconfigint("at1_running", 0);
Note: See TracChangeset for help on using the changeset viewer.