~drbob/+junk/diary-main

« back to all changes in this revision

Viewing changes to src/storage-manager.c

  • Committer: Philip Withnall
  • Date: 2008-04-10 18:16:26 UTC
  • Revision ID: philip@tecnocode.co.uk-20080410181626-49glfpolxf6zk0zw
2008-04-10  Philip Withnall  <philip@tecnocode.co.uk>

        * src/main-window.c:
        * src/storage-manager.c: Fix use of memory after freeing it, and
        actually delete entries from the database when they're blanked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
645
645
                        gtk_widget_destroy (dialog);
646
646
                        return TRUE;
647
647
                }
 
648
 
 
649
                diary_storage_manager_query_async (self, "DELETE FROM entries WHERE year = %u AND month = %u AND day = %u", NULL, NULL, year, month, day);
648
650
                gtk_widget_destroy (dialog);
649
651
        }
650
652