~ubuntu-branches/debian/sid/gnome-chess/sid

« back to all changes in this revision

Viewing changes to debian/patches/40_double_frees.diff

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese, Peter De Wachter
  • Date: 2008-10-31 13:45:07 UTC
  • Revision ID: james.westby@ubuntu.com-20081031134507-i84s5dbj69eri0an
Tags: 0.4.0-3
[ Barry deFreese ]
* Improve short description and fix typo in long.
* Set urgency to medium for RC bug fix.
* Update my e-mail address.
* Bump Standards Version to 3.8.0. (No changes needed).

[ Peter De Wachter ]
* Added watch file.
* Added dh_gconf in rules. (Closes: #472866)
* Fixed localization bugs. (Closes: #503735)
* Fixed a few other obvious bugs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/src/game-view.c
 
2
+++ b/src/game-view.c
 
3
@@ -199,10 +199,10 @@
 
4
        GameView *view;
 
5
        GameViewPrivate *priv;
 
6
 
 
7
-       if (priv != NULL) {
 
8
-               view = GAME_VIEW (object);
 
9
-               priv = view->priv;
 
10
+       view = GAME_VIEW (object);
 
11
+       priv = view->priv;
 
12
                
 
13
+       if (priv != NULL) {
 
14
                prefs_rm_notification (priv->light_id);
 
15
                prefs_rm_notification (priv->dark_id);
 
16
                
 
17
--- a/src/engine-view.c
 
18
+++ b/src/engine-view.c
 
19
@@ -121,6 +121,7 @@
 
20
        priv = view->priv;
 
21
 
 
22
        g_free (priv);
 
23
+       view->priv = NULL;
 
24
 
 
25
        GTK_OBJECT_CLASS (parent_class)->destroy (object);
 
26
 }