X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.c;h=2c35dcf4e6cc83424068867efa2fd4958c9b2044;hb=a16ae567635169e8a0f6e7eae037728c88ed17fe;hp=a04fcaed447c393e5df6960e8295eef9121dbff6;hpb=79782fe066e3e5fa2a82c7ca80a4f7d3306fe1ee;p=pspp diff --git a/src/data/dictionary.c b/src/data/dictionary.c index a04fcaed44..2c35dcf4e6 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -1172,22 +1172,6 @@ dict_set_filter (struct dictionary *d, struct variable *v) assert (v == NULL || dict_contains_var (d, v)); assert (v == NULL || var_is_numeric (v)); - /* When a filter is set, we ref the dictionary. - This is because the GUI maintains a pointer - to the dict's variables, and the variables' - addresses change in the callback. */ - if (d->filter == NULL && v != NULL) - { - d = dict_ref (d); - } - - /* Deref the dict when a filter is removed. */ - if (d->filter != NULL && v == NULL) - { - assert (d->ref_cnt > 0); - dict_unref (d); - } - d->filter = v; if (d->changed) d->changed (d, d->changed_data);