X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fcallbacks.c;h=d30a490da2399f450e6b683dd00f1ff957011a30;hb=53ac91316921e188b4e778a7b766016d4a6dd2a2;hp=5ded4686fff86ea56aedec51c7b3d73439f823fa;hpb=3a5f75c1f3876b6172daf4e0a31c7e881335033c;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index 5ded4686..d30a490d 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -4122,7 +4122,10 @@ Tab* create_tab(MainWindow * mw, Tab *copy_tab, /* Copy the previous tab's filter */ /* We can clone the filter, as we copy the trace set also */ /* The filter must always be in sync with the trace set */ - tab->filter = lttv_filter_clone(copy_tab->filter); + if(copy_tab->filter != NULL) + tab->filter = lttv_filter_clone(copy_tab->filter); + else + tab->filter = NULL; } else { tab->traceset_info->traceset = lttv_traceset_new();