~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to src/SDL_hints.c

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                    entry->callback(entry->userdata, name, hint->value, value);
73
73
                    entry = next;
74
74
                }
75
 
                if (hint->value) {
76
 
                    SDL_free(hint->value);
77
 
                }
78
 
                if (value) {
79
 
                    hint->value = SDL_strdup(value);
80
 
                } else {
81
 
                    hint->value = NULL;
82
 
                }
 
75
                SDL_free(hint->value);
 
76
                hint->value = value ? SDL_strdup(value) : NULL;
83
77
            }
84
78
            hint->priority = priority;
85
79
            return SDL_TRUE;
210
204
        SDL_hints = hint->next;
211
205
 
212
206
        SDL_free(hint->name);
213
 
        if (hint->value) {
214
 
            SDL_free(hint->value);
215
 
        }
 
207
        SDL_free(hint->value);
216
208
        for (entry = hint->callbacks; entry; ) {
217
209
            SDL_HintWatch *freeable = entry;
218
210
            entry = entry->next;