From: John Darrington Date: Tue, 17 Mar 2009 23:44:32 +0000 (+0900) Subject: Fixed crash which occured when deleting dictionaries which had variable labels X-Git-Tag: v0.7.3~215 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2026467b6982086ba9fd5c44e549a0fe735285e;p=pspp-builds.git Fixed crash which occured when deleting dictionaries which had variable labels --- diff --git a/src/data/dictionary.c b/src/data/dictionary.c index f6776780..ba840898 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -1348,6 +1348,9 @@ dict_var_changed (const struct variable *v) const struct vardict_info *vdi = var_get_vardict (v); struct dictionary *d = vdi->dict; + if ( NULL == d) + return; + if (d->changed ) d->changed (d, d->changed_data); if ( d->callbacks && d->callbacks->var_changed ) d->callbacks->var_changed (d, var_get_dict_index (v), d->cb_data);